increased delay for starting FRP server

This commit is contained in:
2023-01-17 18:50:39 +00:00
parent add0ae7fb6
commit 1fb248d12d

View File

@@ -194,8 +194,8 @@ func Server() error {
if err != nil { if err != nil {
return err return err
} }
// Create 1 second delay to allow FRP server to start // Create 3 second delay to allow FRP server to start
time.Sleep(1000) time.Sleep(3000)
// Starts FRP as a client with // Starts FRP as a client with
proxyPort, err := frp.StartFRPClientForServer(lowestLatencyIpAddress.Ipv4, serverPort, config.ServerPort) proxyPort, err := frp.StartFRPClientForServer(lowestLatencyIpAddress.Ipv4, serverPort, config.ServerPort)
if err != nil { if err != nil {