parent
67fb669434
commit
061347f9f9
@ -114,6 +114,17 @@ func main() {
|
||||
log.Printf("serving %q: %v", listen, err)
|
||||
}
|
||||
}()
|
||||
case "unix":
|
||||
ln, err := net.Listen("unix", u.Path)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to start listener on %q: %v", listen, err)
|
||||
}
|
||||
ln = proxyProtoListener(ln, srv)
|
||||
go func() {
|
||||
if err := srv.Serve(ln); err != nil {
|
||||
log.Printf("serving %q: %v", listen, err)
|
||||
}
|
||||
}()
|
||||
case "wss":
|
||||
addr := u.Host
|
||||
if _, _, err := net.SplitHostPort(addr); err != nil {
|
||||
|
@ -82,6 +82,7 @@ The following directives are supported:
|
||||
omitted: 6697)
|
||||
- _irc+insecure://[host][:port]_ listens with plain-text over TCP (default
|
||||
port if omitted: 6667)
|
||||
- _unix:///<path>_ listens on a Unix domain socket
|
||||
- _wss://[host][:port]_ listens for WebSocket connections over TLS (default
|
||||
port: 443)
|
||||
- _ws+insecure://[host][:port]_ listens for plain-text WebSocket
|
||||
|
Loading…
Reference in New Issue
Block a user