fix:完善守护机制
This commit is contained in:
@@ -65,7 +65,7 @@ func ErrHandler(err error) {
|
||||
func NetDailEr() func(ctx context.Context, network, address string) (net.Conn, error) {
|
||||
return func(ctx context.Context, network, address string) (net.Conn, error) {
|
||||
d := net.Dialer{
|
||||
Timeout: 5 * time.Second,
|
||||
Deadline: time.Now().Add(5 * time.Second),
|
||||
}
|
||||
return d.DialContext(ctx, "udp", global.Config.Settings.Dns+":53")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user