From fb819a57e6acfcc6efe0bda3588ef993e1cfd37e Mon Sep 17 00:00:00 2001 From: ziti-ci Date: Thu, 22 Oct 2020 08:32:44 -0400 Subject: [PATCH] fix for when DisabledComponents is > 255 --- service/ziti-tunnel/service/state.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service/ziti-tunnel/service/state.go b/service/ziti-tunnel/service/state.go index b33beea5..772dab87 100644 --- a/service/ziti-tunnel/service/state.go +++ b/service/ziti-tunnel/service/state.go @@ -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)