eventure / hide.client.linux

Hide.me CLI VPN client for Linux
https://hide.me
GNU General Public License v2.0
90 stars 35 forks source link

When I reboot my router, the vpn will not reconnect #13

Open Azureit opened 3 years ago

Azureit commented 3 years ago

From time to time I reboot my router (crappy ISP/router), it takes 3 minutes to have internet again, and this client will give up reconnecting.

My workaround/fix at hide.me.go


            fmt.Println( "Main: [ERR] Connect failed,", connectErr ); err = connectErr
            // break
            continue connectLoop
        }
        fmt.Println( "Main: Connected to", client.Remote() )
        connectResponse.Print()
linmq commented 3 years ago

I have the same issue. I try to generate the WireGuard configuration base on this project, and using the config on GL.iNet router, it works. But when the router disconnect the WireGuard, after 2 minutes, try to reconnect, it will give up connecting. Anyone know how to fix this? Do I need to call the disconnect API?

Azureit commented 3 years ago

My workaround at the file hide.me.go, is replace the "break" at line 155 by "continue connectLoop" Test if it works for you too.