format fixes

This commit is contained in:
2026-02-15 15:54:02 +00:00
parent 1c5e18294e
commit 46874f2cf5
3 changed files with 21 additions and 6 deletions

View File

@@ -8,9 +8,10 @@ import (
"strings"
"time"
udpproxy "github.com/onyx-and-iris/q3rcon-proxy"
log "github.com/sirupsen/logrus"
"github.com/urfave/cli/v3"
udpproxy "github.com/onyx-and-iris/q3rcon-proxy"
)
// proxyConfig holds the configuration for a single UDP proxy server.
@@ -59,7 +60,10 @@ func main() {
return fmt.Errorf("invalid target port: %s", ports[1])
}
if proxyPort == targetPort {
return fmt.Errorf("proxy and target ports cannot be the same: %s", mapping)
return fmt.Errorf(
"proxy and target ports cannot be the same: %s",
mapping,
)
}
}
return nil