English
The reload block
What a configuration reload does to the live connections of this inbound, outbound or group. An ours extension, not in sing-box. The value is a string, not an object.
| Value | What happens on reload |
|---|---|
reroute_changed | The connection is closed if the new configuration would route it differently or rebuilt its outbound (default) |
keep | The connection stays on the outbound it was opened through, even if that outbound is no longer in the configuration |
close | The connection is always closed |
Without the block, the policy of the top-level section reload.connections applies (see the configuration).
Example
yaml
outbounds:
proxy:
socks:
server: 192.0.2.10:1080
reload: keep
route:
final:
outbound: proxy
reload:
connections: reroute_changed