diff --git a/core/src/main/golang/proxy/http.go b/core/src/main/golang/proxy/http.go index 82034cb57f913ae1b31b33db84fca4c3177f053e..4b6d94ee886e4006b5b78b43b193a6a2f71e5fd6 100644 --- a/core/src/main/golang/proxy/http.go +++ b/core/src/main/golang/proxy/http.go @@ -89,8 +89,10 @@ func (l *httpListener) handleConn(conn net.Conn) { if err != nil || request.URL.Host == "" { if err != nil { log.Warnln("HTTP Connection closed: %s", err.Error()) + } else { + log.Warnln("HTTP Connection closed: unknown host") } - + _ = conn.Close() return } diff --git a/service/src/main/java/com/github/kr328/clash/service/store/ServiceStore.kt b/service/src/main/java/com/github/kr328/clash/service/store/ServiceStore.kt index 7a997d24cc9d5c373c1944f78038e28ba979f539..c97d1200d429a37d93b1f05cfc33723486d918d5 100644 --- a/service/src/main/java/com/github/kr328/clash/service/store/ServiceStore.kt +++ b/service/src/main/java/com/github/kr328/clash/service/store/ServiceStore.kt @@ -43,7 +43,7 @@ class ServiceStore(context: Context) { var systemProxy by store.boolean( key = "system_proxy", - defaultValue = false + defaultValue = true ) var blockLoopback by store.boolean(