Skip to content

Commit

Permalink
Readd global unicast check
Browse files Browse the repository at this point in the history
  • Loading branch information
bt90 committed Aug 21, 2023
1 parent 39b425f commit e59f8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connections/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func getHostPortsForAllAdapters(port int) []string {

for _, network := range nets {
// only accept IPv4 link-local unicast and the private ranges defined in RFC 1918 and RFC 4193
if (network.IP.To4() != nil && network.IP.IsLinkLocalUnicast()) || network.IP.IsPrivate() {
if (network.IP.To4() != nil && network.IP.IsLinkLocalUnicast()) || (network.IP.IsPrivate() && && network.IP.IsGlobalUnicast()) {

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Build and test (windows-latest, 1.20)

syntax error: unexpected &&, expected expression

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Build and test (windows-latest, 1.21)

syntax error: unexpected &&, expected expression

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Build and test (ubuntu-latest, 1.20)

syntax error: unexpected &&, expected expression

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Build and test (ubuntu-latest, 1.21)

syntax error: unexpected &&, expected expression

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Build and test (macos-latest, 1.20)

syntax error: unexpected &&, expected expression

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Build and test (macos-latest, 1.21)

syntax error: unexpected &&, expected expression

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Run govulncheck

expected operand, found '&&'

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Package cross compiled

syntax error: unexpected &&, expected expression

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Package cross compiled

syntax error: unexpected &&, expected expression

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Package cross compiled

syntax error: unexpected &&, expected expression

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Package cross compiled

syntax error: unexpected &&, expected expression

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Package cross compiled

syntax error: unexpected &&, expected expression

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Package for Debian

syntax error: unexpected &&, expected expression

Check failure on line 75 in lib/connections/util.go

View workflow job for this annotation

GitHub Actions / Package for Linux

syntax error: unexpected &&, expected expression
hostPorts = append(hostPorts, net.JoinHostPort(network.IP.String(), portStr))
}
}
Expand Down

0 comments on commit e59f8d7

Please sign in to comment.