Skip to content

Commit 9bd953a

Browse files
ic0xgkkfujita
authored andcommitted
fix: dynamic neighbor connect failed with auth-password and wildcard mask
1 parent 87e35db commit 9bd953a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/server/sockopt_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func setTCPMD5SigSockopt(l *net.TCPListener, address string, key string) error {
7979
if err := sc.Control(func(s uintptr) {
8080
opt := unix.TCP_MD5SIG
8181

82-
if t.Prefixlen != 0 {
82+
if strings.Contains(address, "/") {
8383
opt = unix.TCP_MD5SIG_EXT
8484
}
8585

0 commit comments

Comments
 (0)