Skip to content

Commit

Permalink
fix: http server ipv4 method.
Browse files Browse the repository at this point in the history
  • Loading branch information
auula committed Mar 20, 2024
1 parent 7738fe4 commit fc50aaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/vasedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func main() {

// 防止 HTTP 端口占用,延迟输出启动信息
time.Sleep(500 * time.Millisecond)
clog.Infof("HTTP server started %s:%d 🚀", server.IPv4(), hs.Port())
clog.Infof("HTTP server started %s:%d 🚀", hs.IPv4(), hs.Port())

err = hs.Shutdown()
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (hs *HttpServer) Port() int {
}

// IPv4 return local IPv4 address
func IPv4() string {
func (hs *HttpServer) IPv4() string {
return _IPv4
}

Expand Down

0 comments on commit fc50aaa

Please sign in to comment.