add missing helper methods

This commit is contained in:
ziti-ci
2020-07-12 14:03:15 -04:00
parent 2427f7d2bb
commit 4559ea7389
+9
View File
@@ -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()
}