Add unix as supported upstream URL scheme to service
This commit is contained in:
parent
1ac895430a
commit
907da56311
@ -310,9 +310,9 @@ func (fs *networkFlagSet) update(network *Network) error {
|
|||||||
if addrParts := strings.SplitN(*fs.Addr, "://", 2); len(addrParts) == 2 {
|
if addrParts := strings.SplitN(*fs.Addr, "://", 2); len(addrParts) == 2 {
|
||||||
scheme := addrParts[0]
|
scheme := addrParts[0]
|
||||||
switch scheme {
|
switch scheme {
|
||||||
case "ircs", "irc+insecure":
|
case "ircs", "irc+insecure", "unix":
|
||||||
default:
|
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
|
network.Addr = *fs.Addr
|
||||||
|
Loading…
Reference in New Issue
Block a user