Skip to content

Commit a0f70eb

Browse files
committed
backend/proxies: m godoc
1 parent 825368c commit a0f70eb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

intra/backend/ipn_proxies.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,14 @@ type ProxyListener interface {
237237
// OnProxyRemoved is called when a proxy is removed except when all
238238
// proxies are stopped, in which case OnProxiesStopped is called.
239239
OnProxyRemoved(id *Gostr)
240-
// OnProxyStopped is called when a proxy is stopped.
240+
// OnProxyStopped is called when a proxy is stopped instead of being
241+
// removed (that is, this callback is not called in all proxy stop scenarios).
242+
// A stopped proxy, if added again, is replaced/updated instead; and subsequently,
243+
// the onProxyAdded callback is invoked.
241244
OnProxyStopped(id *Gostr)
242245
// OnProxiesStopped is called when all proxies are stopped.
243-
// Note: OnProxyRemoved is not called for each proxy.
246+
// Note: OnProxyRemoved is not called for each proxy, even
247+
// if they are removed instead of being merely "stopped".
244248
OnProxiesStopped()
245249
}
246250

0 commit comments

Comments
 (0)