go fmt the entire project and added possbility to start a server with a TURN connection with a custom remote connection

This commit is contained in:
2023-04-22 12:43:22 +01:00
parent 5edf1f801b
commit 732b31fafa
2 changed files with 122 additions and 109 deletions

View File

@@ -197,7 +197,7 @@ func Server() (*gin.Engine, error) {
// Create 3 second delay to allow FRP server to start
time.Sleep(1 * time.Second)
// 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 {
return nil, err
}