Add unix as supported upstream URL scheme to service

This commit is contained in:
Simon Ser 2020-07-09 12:19:51 +02:00
parent 1ac895430a
commit 907da56311
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -310,9 +310,9 @@ func (fs *networkFlagSet) update(network *Network) error {
if addrParts := strings.SplitN(*fs.Addr, "://", 2); len(addrParts) == 2 {
scheme := addrParts[0]
switch scheme {
case "ircs", "irc+insecure":
case "ircs", "irc+insecure", "unix":
default:
return fmt.Errorf("unknown scheme %q (supported schemes: ircs, irc+insecure)", scheme)
return fmt.Errorf("unknown scheme %q (supported schemes: ircs, irc+insecure, unix)", scheme)
}
}
network.Addr = *fs.Addr