|
@@ -5,6 +5,7 @@ import (
|
|
"log"
|
|
"log"
|
|
"net/url"
|
|
"net/url"
|
|
"strings"
|
|
"strings"
|
|
|
|
+ "time"
|
|
|
|
|
|
"imuslab.com/zoraxy/mod/dynamicproxy/dpcore"
|
|
"imuslab.com/zoraxy/mod/dynamicproxy/dpcore"
|
|
)
|
|
)
|
|
@@ -58,6 +59,7 @@ func (router *Router) PrepareProxyRoute(endpoint *ProxyEndpoint) (*ProxyEndpoint
|
|
|
|
|
|
proxy := dpcore.NewDynamicProxyCore(path, vdir.MatchingPath, &dpcore.DpcoreOptions{
|
|
proxy := dpcore.NewDynamicProxyCore(path, vdir.MatchingPath, &dpcore.DpcoreOptions{
|
|
IgnoreTLSVerification: vdir.SkipCertValidations,
|
|
IgnoreTLSVerification: vdir.SkipCertValidations,
|
|
|
|
+ FlushInterval: 500 * time.Millisecond,
|
|
})
|
|
})
|
|
vdir.proxy = proxy
|
|
vdir.proxy = proxy
|
|
vdir.parent = endpoint
|
|
vdir.parent = endpoint
|