Skip to content

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.

ValueWhat happens on reload
reroute_changedThe connection is closed if the new configuration would route it differently or rebuilt its outbound (default)
keepThe connection stays on the outbound it was opened through, even if that outbound is no longer in the configuration
closeThe 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

GPL-3.0-or-later