File: network.go

package info (click to toggle)
witr 0.2.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 736 kB
  • sloc: sh: 79; makefile: 10
file content (10 lines) | stat: -rw-r--r-- 157 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
package source

func IsPublicBind(addrs []string) bool {
	for _, a := range addrs {
		if a == "0.0.0.0" || a == "::" {
			return true
		}
	}
	return false
}