From 8b0a3483a00efc8e079ea2cade4eb0b7ca2933c8 Mon Sep 17 00:00:00 2001 From: starainrt Date: Sat, 29 Jun 2024 20:16:07 +0800 Subject: [PATCH] add more nat func --- net/natt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/natt.go b/net/natt.go index 4d2d561..f9a99ec 100644 --- a/net/natt.go +++ b/net/natt.go @@ -52,8 +52,8 @@ func (n *NatThroughs) Parse(reqs []string) error { var req = NatThrough{ Forward: netforward.NetForward{ LocalAddr: "0.0.0.0", - DialTimeout: 3000, - UDPTimeout: 20000, + DialTimeout: time.Second * 5, + UDPTimeout: time.Second * 20, KeepAlivePeriod: n.KeepAlivePeriod, KeepAliveIdel: n.KeepAliveIdel, KeepAliveCount: n.KeepAliveCount,