Skip to content

Commit

Permalink
RSDK-9972 Update server tunnel to connect to 127.0.0.1 instead of loc…
Browse files Browse the repository at this point in the history
…alhost (#4791)
  • Loading branch information
benjirewis authored Feb 13, 2025
1 parent 5e0a4e2 commit b9b69ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robot/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (s *Server) Tunnel(srv pb.RobotService_TunnelServer) error {
s.robot.Logger().CDebugw(srv.Context(), "dialing to destination port", "port", dest)

dialTimeout := 10 * time.Second
conn, err := net.DialTimeout("tcp", net.JoinHostPort("localhost", dest), dialTimeout)
conn, err := net.DialTimeout("tcp", net.JoinHostPort("127.0.0.1", dest), dialTimeout)
if err != nil {
return fmt.Errorf("failed to dial to destination port %v: %w", dest, err)
}
Expand Down

0 comments on commit b9b69ef

Please sign in to comment.