mirror of
https://github.com/h44z/wg-portal.git
synced 2026-04-09 00:46:22 +00:00
change default check-time to 180s
This commit is contained in:
@@ -205,11 +205,11 @@ The current MikroTik backend is in **BETA** and may not support all features.
|
|||||||
Valid options are: `local`, or other backend id's configured in the `mikrotik` section.
|
Valid options are: `local`, or other backend id's configured in the `mikrotik` section.
|
||||||
|
|
||||||
### `rekey_timeout_interval`
|
### `rekey_timeout_interval`
|
||||||
- **Default:** `150s`
|
- **Default:** `180s`
|
||||||
- **Environment Variable:** `WG_PORTAL_BACKEND_REKEY_TIMEOUT_INTERVAL`
|
- **Environment Variable:** `WG_PORTAL_BACKEND_REKEY_TIMEOUT_INTERVAL`
|
||||||
- **Description:** The interval after which a WireGuard peer is considered disconnected if no handshake updates are received.
|
- **Description:** The interval after which a WireGuard peer is considered disconnected if no handshake updates are received.
|
||||||
This corresponds to the WireGuard rekey timeout setting of 120 seconds plus a 30-second buffer to account for latency or retry handling.
|
This corresponds to the WireGuard rekey timeout setting of 120 seconds plus a 60-second buffer to account for latency or retry handling.
|
||||||
Uses Go duration format (e.g., `10s`, `1m`). If omitted, a default of 150 seconds is used.
|
Uses Go duration format (e.g., `10s`, `1m`). If omitted, a default of 180 seconds is used.
|
||||||
|
|
||||||
### `local_resolvconf_prefix`
|
### `local_resolvconf_prefix`
|
||||||
- **Default:** `tun.`
|
- **Default:** `tun.`
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ func TestStatisticsCollector_getSessionStartTime(t *testing.T) {
|
|||||||
c := &StatisticsCollector{
|
c := &StatisticsCollector{
|
||||||
cfg: &config.Config{
|
cfg: &config.Config{
|
||||||
Backend: config.Backend{
|
Backend: config.Backend{
|
||||||
ReKeyTimeoutInterval: 150 * time.Second,
|
ReKeyTimeoutInterval: 180 * time.Second,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ func defaultConfig() *Config {
|
|||||||
|
|
||||||
cfg.Backend = Backend{
|
cfg.Backend = Backend{
|
||||||
Default: LocalBackendName, // local backend is the default (using wgcrtl)
|
Default: LocalBackendName, // local backend is the default (using wgcrtl)
|
||||||
ReKeyTimeoutInterval: getEnvDuration("WG_PORTAL_BACKEND_REKEY_TIMEOUT_INTERVAL", 150*time.Second),
|
ReKeyTimeoutInterval: getEnvDuration("WG_PORTAL_BACKEND_REKEY_TIMEOUT_INTERVAL", 180*time.Second),
|
||||||
IgnoredLocalInterfaces: getEnvStrSlice("WG_PORTAL_BACKEND_IGNORED_LOCAL_INTERFACES", nil),
|
IgnoredLocalInterfaces: getEnvStrSlice("WG_PORTAL_BACKEND_IGNORED_LOCAL_INTERFACES", nil),
|
||||||
// Most resolconf implementations use "tun." as a prefix for interface names.
|
// Most resolconf implementations use "tun." as a prefix for interface names.
|
||||||
// But systemd's implementation uses no prefix, for example.
|
// But systemd's implementation uses no prefix, for example.
|
||||||
|
|||||||
Reference in New Issue
Block a user