fix for when DisabledComponents is > 255

This commit is contained in:
ziti-ci
2020-10-22 08:32:44 -04:00
parent 281f9b5a77
commit fb819a57e6
+3 -1
View File
@@ -281,7 +281,9 @@ func iPv6Disabled() bool {
log.Debugf("registry key HKLM\\SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters\\DisabledComponents not present. IPv6 is enabled")
return false
}
if val == 255 {
actual := val & 255
log.Debugf("read value from registry: %d. using actual: %d", val, actual)
if actual == 255 {
return true
} else {
log.Infof("IPv6 has DisabledComponents set to %d. If the service fails to start please report this message", val)