Add DNS override

Fixed some bugs
Optimize more detail
This commit is contained in:
chen08209
2024-08-26 20:44:30 +08:00
parent 3783c3c650
commit aca4a3e979
59 changed files with 4053 additions and 1000 deletions

View File

@@ -48,9 +48,11 @@ func start() {
//export stop
func stop() {
runLock.Lock()
defer runLock.Unlock()
isRunning = false
stopListeners()
go func() {
defer runLock.Unlock()
isRunning = false
stopListeners()
}()
}
//export initClash
@@ -236,6 +238,7 @@ func asyncTestDelay(s *C.char, port C.longlong) {
proxies := tunnel.ProxiesWithProviders()
proxy := proxies[params.ProxyName]
proxy.Name()
delayData := &Delay{
Name: params.ProxyName,