fix(publicip): rework run loop and fix restarts
- Clearing IP data on VPN disconnection clears file - More efficient partial updates - Fix loop exit - Validate settings before updating
This commit is contained in:
@@ -90,7 +90,6 @@ type DNSLoop interface {
|
||||
}
|
||||
|
||||
type PublicIPLoop interface {
|
||||
ApplyStatus(ctx context.Context, status models.LoopStatus) (
|
||||
outcome string, err error)
|
||||
SetData(data models.PublicIP)
|
||||
StartSingleRun()
|
||||
ClearData() (err error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user