hide.client.linux icon indicating copy to clipboard operation
hide.client.linux copied to clipboard

When I reboot my router, the vpn will not reconnect

Open Azureit opened this issue 4 years ago • 2 comments

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()

Azureit avatar Jun 19 '21 07:06 Azureit

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?

linmq avatar Jul 08 '21 09:07 linmq

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.

Azureit avatar Jul 08 '21 12:07 Azureit