diff --git a/service/ziti-tunnel/service/state.go b/service/ziti-tunnel/service/state.go index 33283c44..a2fb08be 100644 --- a/service/ziti-tunnel/service/state.go +++ b/service/ziti-tunnel/service/state.go @@ -258,4 +258,13 @@ func (t *RuntimeState) LoadConfig() { if err != nil { log.Errorf("could not close configuration file. this is not normal! %v", err) } +} + +func (t *RuntimeState) UpdateIpv4Mask(ipv4mask int){ + rts.state.TunIpv4Mask = ipv4mask + rts.SaveState() +} +func (t *RuntimeState) UpdateIpv4(ipv4 string){ + rts.state.TunIpv4 = ipv4 + rts.SaveState() } \ No newline at end of file