Skip to content

Commit

Permalink
not allow private ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxzz106 committed Aug 4, 2023
1 parent 2e57b1e commit 504ca5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/utils/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ func GetIPFromInterface(configuration *settings.Settings) (string, error) {
if strings.ToUpper(configuration.IPType) != IPV6 {
continue
}
if ip.IsPrivate() {
continue
}
}

if ip.String() != "" {
Expand Down

0 comments on commit 504ca5f

Please sign in to comment.