mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-09-22 07:56:00 +00:00
fix(tun): udp not work when timeout not specified
This commit is contained in:
@@ -73,7 +73,7 @@ func startTUN(config *clientConfig, client *core.Client, errChan chan error) {
|
||||
}
|
||||
}
|
||||
|
||||
tunServer, err := tun.NewServer(client, time.Duration(config.TUN.Timeout)*time.Second,
|
||||
tunServer, err := tun.NewServer(client, timeout,
|
||||
config.TUN.Name, config.TUN.MTU,
|
||||
int(tcpSendBufferSize), int(tcpReceiveBufferSize), config.TUN.TCPModerateReceiveBuffer)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user