fix: ensure tunnel protocol and KCP config are correctly processed and cleaned up

This commit is contained in:
sagitchu
2026-04-22 09:41:41 +08:00
parent 6e60f5cfbd
commit 9aff669c0e
3 changed files with 15 additions and 3 deletions
BIN
View File
Binary file not shown.
+2
View File
@@ -105,6 +105,8 @@ func GetDuration(md metadata.Metadata, keys ...string) (v time.Duration) {
switch vv := md.Get(key).(type) {
case int:
v = time.Duration(vv) * time.Second
case float64:
v = time.Duration(vv) * time.Second
case string:
v, _ = time.ParseDuration(vv)
if v == 0 {