extremecoders-re / go-dispatch-proxy

SOCKS5/Transparent load balancing proxy developed in Go, combines multiple internet connections
MIT License
278 stars 45 forks source link

Update main.go #10

Closed SirSAC closed 3 years ago

SirSAC commented 3 years ago

Fix for SSH connection.

extremecoders-re commented 3 years ago

Thanks for the PR. However instead of

if tunnel {
    if iface == "" {
        log.Fatal("[FATAL] IP address not associated with an interface ", lb_ip)
    }
}

it should be

if !tunnel {

as we want to fetch the interface name only in non-tunnel mode

SirSAC commented 3 years ago

Oh, yea. sorry my bad because i was very tired with my fork (i think is fork but im not sure) of your project, please check my project (DisPro) and let me know if you find some issues or if u have some suggestions.