updated code to treat ipv4inv6 as ipv4

This commit is contained in:
2025-01-16 01:26:58 +09:00
parent e1eb346228
commit c237b8a842
4 changed files with 15 additions and 13 deletions

View File

@ -381,7 +381,7 @@ func (cts *ServerConn) make_route_listener(id RouteId, option RouteOption, svc_r
svcaddr = &net.TCPAddr{IP: net.IPv6zero, Port: 0}
}
} else {
return nil, nil, fmt.Errorf("invalid route option value %d(%s)", option, option.string())
return nil, nil, fmt.Errorf("invalid route option value %d(%s)", option, option.String())
}
l, err = net.ListenTCP(nw, svcaddr) // make the binding address configurable. support multiple binding addresses???