mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-05 18:20:48 -08:00
add listen.send_recv_error config option (#670)
By default, Nebula replies to packets it has no tunnel for with a `recv_error` packet. This packet helps speed up re-connection in the case that Nebula on either side did not shut down cleanly. This response can be abused as a way to discover if Nebula is running on a host though. This option lets you configure if you want to send `recv_error` packets always, never, or only to private network remotes. valid values: always, never, private This setting is reloadable with SIGHUP.
This commit is contained in:
parent
85ec807b7e
commit
7b9287709c
5 changed files with 83 additions and 1 deletions
|
|
@ -76,6 +76,11 @@ func (c *C) RegisterReloadCallback(f func(*C)) {
|
|||
c.callbacks = append(c.callbacks, f)
|
||||
}
|
||||
|
||||
// InitialLoad returns true if this is the first load of the config, and ReloadConfig has not been called yet.
|
||||
func (c *C) InitialLoad() bool {
|
||||
return c.oldSettings == nil
|
||||
}
|
||||
|
||||
// HasChanged checks if the underlying structure of the provided key has changed after a config reload. The value of
|
||||
// k in both the old and new settings will be serialized, the result of the string comparison is returned.
|
||||
// If k is an empty string the entire config is tested.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue