Skip to content

Commit

Permalink
minor fix in public ipv4 and ipv6 config
Browse files Browse the repository at this point in the history
  • Loading branch information
mosajjal committed Aug 19, 2024
1 parent 2683b35 commit 60bbcd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/sniproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ func main() {
if c.PublicIPv6 == "" {
c.PublicIPv6, _ = getPublicIPv6()
}
if c.PublicIPv4 == "" && c.PublicIPv6 == "" {
logger.Error().Msg("Could not automatically determine public IP. you should provide it manually using --publicIPv4 and --publicIPv6")
return
}
c.BindPrometheus = generalConfig.String("prometheus")
c.AllowConnToLocal = generalConfig.Bool("allow_conn_to_local")

Expand Down

0 comments on commit 60bbcd7

Please sign in to comment.