From 4e44e9001a9fdbfe9e4a11d0505247a390462cc5 Mon Sep 17 00:00:00 2001 From: James Rouzier Date: Tue, 17 Dec 2024 13:01:26 +0000 Subject: [PATCH] Remove ReusePort --- go/chisel/share/settings/remote.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/go/chisel/share/settings/remote.go b/go/chisel/share/settings/remote.go index 182bd042546..5ce8b48e28b 100644 --- a/go/chisel/share/settings/remote.go +++ b/go/chisel/share/settings/remote.go @@ -42,11 +42,10 @@ type Remote struct { LastTouched time.Time LocalHost, LocalPort, LocalProto string RemoteHost, RemotePort, RemoteProto string - Dynamic, Socks, Reverse, Stdio bool Handler string ReusedTcpListener *net.TCPListener ReusedUdpConn *net.UDPConn - ReusePort bool + Dynamic, Socks, Reverse, Stdio bool } const revPrefix = "R:" @@ -172,7 +171,7 @@ func (r *Remote) setupLocalPort() error { tl := l.(*net.TCPListener) r.LocalPort = strconv.Itoa(tl.Addr().(*net.TCPAddr).Port) r.ReusedTcpListener = tl - r.ReusePort = true + r.Dynamic = true return nil } @@ -185,7 +184,7 @@ func (r *Remote) setupLocalPort() error { uc := l.(*net.UDPConn) r.LocalPort = strconv.Itoa(uc.LocalAddr().(*net.UDPAddr).Port) r.ReusedUdpConn = uc - r.ReusePort = true + r.Dynamic = true return nil } return errors.New("Proto not supported")