openziti / ziti-tunnel-sdk-c

Apache License 2.0
42 stars 15 forks source link

When IPv6 is configured as an intercept the Address is not properly output in the log and event channel service events #872

Open r-caamano opened 1 week ago

r-caamano commented 1 week ago

intercept.v1 = {"addresses":["192.168.1.0/24","2601:efad:c02:ffc9::1021"],"portRanges":[{"high":22,"low":22}],"protocols":["tcp"],"sourceIp":"$src_ip:$src_port"}

The log shows the correct address (above) in the interceptV1 config but the service event list the IPv6 address as an empty string excerpt from event channel (below)

"Services":[{"Id":"5XzC8mf1RrFO2vmfHGG5GL","Name":"ssh-192.168.1.0","Protocols":["tcp"],"Addresses":[{"IsHost":false,"IP":"192.168.1.0","Prefix":24},{"IsHost":false,"IP":"","Prefix":128}],"Ports":[{"High":22,"Low":22}],"OwnsIntercept":true,"IsAccessible":true,"Timeout":-1,"TimeoutRemaining":-1,"Permissions":{"Bind":false,"Dial":true}}