-
Notifications
You must be signed in to change notification settings - Fork 47
v0.17.14 can not run on Linux #32
Comments
Hi, server is trying to listen on all interfaces, but failing on one of them. I'm not sure how to handle that sutiation. You can try to listen only on "10.162.58.13:3478". Sorry for late reply, I'll create some workaround for your case soon. |
Can you please try v0.18.3? |
Hi, thank you for feedback. Can you please try v0.18.4? |
Sorry to say, the problem existed. Y are right, my environment is not normal, I want to have a try to find the bug, is there a debug logger to find the error line? |
Can you please run the following: package main
import (
"flag"
"fmt"
"net"
"os"
"syscall"
)
var addr = flag.String("listen", "218.244.128.99:3478", "listen addr")
func protocolNotSupported(err error) bool {
switch err := err.(type) {
case syscall.Errno:
switch err {
case syscall.EPROTONOSUPPORT, syscall.ENOPROTOOPT:
return true
}
case *os.SyscallError:
return protocolNotSupported(err.Err)
case *net.OpError:
return protocolNotSupported(err.Err)
}
return false
}
func main() {
flag.Parse()
c, err := net.ListenPacket("udp", *addr)
if err != nil {
fmt.Printf("ERR (not supported: %v): %v\n", protocolNotSupported(err), err)
fmt.Printf("\t%#v\n", err)
fmt.Printf("Type:\n\t%T\n", err)
} else {
fmt.Println("OK", c.LocalAddr())
}
} Sample output will be like that:
The error line should be just net.ListenPacket, seems like for some reason one of interfaces on your system is not available. Also please try to set # ...
server:
# ...
reuseport: true |
The code output is:
But change the config to |
With default command options:
With different listened port:
Is it a bug? it can work well on Mac OS.
The text was updated successfully, but these errors were encountered: