mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
fix(publicip): abort ip data fetch if vpn context is canceled
- Prevents requesting the public IP address N times after N VPN failures - Fetching runs with a context local to the 'single run' - Single run writes single run result to a channel back to the caller, RunOnce is now blocking
This commit is contained in:
@@ -89,6 +89,6 @@ type DNSLoop interface {
|
||||
}
|
||||
|
||||
type PublicIPLoop interface {
|
||||
StartSingleRun()
|
||||
RunOnce(ctx context.Context) (err error)
|
||||
ClearData() (err error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user