Skip to content

Commit 953f9ea

Browse files
committed
Swap host to port
Signed-off-by: Vishal Rana <[email protected]>
1 parent b31a9ac commit 953f9ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func initConfig() {
114114
if a.Address == "" {
115115
a.Address = ":80"
116116
}
117-
a.Port, _, _ = net.SplitHostPort(a.Address)
117+
_, a.Port, _ = net.SplitHostPort(a.Address)
118118
if a.Storm == nil {
119119
a.Storm = &armor.Storm{
120120
URI: filepath.Join(a.RootDir, "storm.db"),

0 commit comments

Comments
 (0)