fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
86.42k stars 13.36k forks source link

[Feature Request] Auto retry on first connect. #3752

Closed pituluk closed 11 months ago

pituluk commented 1 year ago

Describe the feature request

If the first connection fails FRP quits and doesnt retry, but if it loses connection after successful first connection it keeps retrying until it connects. It would be nice to have it keep retrying on first connection too for systems that might launch without access to internet yet. "login to server failed: dial tcp x: connect: network is unreachable"

Describe alternatives you've considered

No response

Affected area

superzjg commented 1 year ago

Decide if exit program when first login failed, otherwise continuous relogin to frps, default is true. loginFailExit = true

I see that the author has corrected the error message to quickly locate this point (not yet released). https://github.com/fatedier/frp/commit/184223cb2f240b844f90b3390645672d2225da88#diff-37135e06c87eb7f15648ee3df06d54a2a52cab735ea4110e81610945fe38f7d4R123-R125

github-actions[bot] commented 11 months ago

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.