Skip to content

Commit 840c579

Browse files
author
luotianqi
committed
fix: url error
1 parent 50f0e81 commit 840c579

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

internal/args/args.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55

66
package args
77

8-
import "flag"
8+
import (
9+
"flag"
10+
"strings"
11+
)
912

1013
var (
1114
// 配置文件路径
@@ -50,4 +53,5 @@ func Parse() {
5053
Url = IP
5154
}
5255
loadConfigFile()
56+
Url = strings.TrimSuffix(Url, "/")
5357
}

0 commit comments

Comments
 (0)