use dynamic idle timeout

This commit is contained in:
Hiddify
2024-03-19 12:25:51 +01:00
parent a5ca136a4c
commit 558b152668
2 changed files with 11 additions and 10 deletions

View File

@@ -45,9 +45,9 @@ type InboundOptions struct {
}
type URLTestOptions struct {
ConnectionTestUrl string `json:"connection-test-url"`
URLTestInterval DurationInSeconds `json:"url-test-interval"`
URLTestIdleTimeout DurationInSeconds `json:"url-test-idle-timeout"`
ConnectionTestUrl string `json:"connection-test-url"`
URLTestInterval DurationInSeconds `json:"url-test-interval"`
// URLTestIdleTimeout DurationInSeconds `json:"url-test-idle-timeout"`
}
type RouteOptions struct {
@@ -108,9 +108,9 @@ func DefaultConfigOptions() *ConfigOptions {
TUNStack: "mixed",
},
URLTestOptions: URLTestOptions{
ConnectionTestUrl: "http://cp.cloudflare.com/",
URLTestInterval: DurationInSeconds(600),
URLTestIdleTimeout: DurationInSeconds(6000),
ConnectionTestUrl: "http://cp.cloudflare.com/",
URLTestInterval: DurationInSeconds(600),
// URLTestIdleTimeout: DurationInSeconds(6000),
},
RouteOptions: RouteOptions{
ResolveDestination: false,