xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks/wiki
GNU General Public License v3.0
2.85k stars 406 forks source link

[Bug] cannot unmarshal !!str "50" into time.Duration #130

Closed zhaodice closed 2 years ago

zhaodice commented 2 years ago

Verify steps

Version

2.4.1

What OS are you seeing the problem on?

Windows, Linux

Description

https://github.com/xjasonlyu/tun2socks/commit/31e19a069071886f5377050457079d37309b3711 How can I describe time.Duration data by config file or a parameter?

CLI or Config

No response

Logs

No response

How to Reproduce

when I use -udp-timeout 60 or in yaml config file, got ERROR.

xjasonlyu commented 2 years ago

Try: 60s, 1h30m, etc.

zhaodice commented 2 years ago

Try: 60s, 1h30m, etc.

Thanks, but could you update this wiki with new format : https://github.com/xjasonlyu/tun2socks/wiki/Configuration

xjasonlyu commented 2 years ago

Updated, thanks.