feat 配置

This commit is contained in:
2026-01-26 10:21:49 +08:00
parent 21436f65a7
commit b764d8a084
3 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ func (m *ModulePprof) Start(ready *sync.WaitGroup) error {
go func() {
defer m.wg.Done()
m.server = &http.Server{
Addr: "localhost:6060",
Addr: "127.0.0.1:6060",
}
ready.Done()
if err := m.server.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) {

2
go.mod
View File

@@ -3,7 +3,7 @@ module git.hlsq.asia/mmorpg/service-robot
go 1.24.0
require (
git.hlsq.asia/mmorpg/service-common v0.0.0-20260124144615-81e422d3049f
git.hlsq.asia/mmorpg/service-common v0.0.0-20260125091651-f22d22cbdc57
github.com/gorilla/websocket v1.5.3
github.com/judwhite/go-svc v1.2.1
google.golang.org/protobuf v1.36.10

4
go.sum
View File

@@ -1,7 +1,7 @@
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
git.hlsq.asia/mmorpg/service-common v0.0.0-20260124144615-81e422d3049f h1:ZJGMfG3MD5Oll7aFZ5HIXID8snSIea0qPcjMI8kFLg0=
git.hlsq.asia/mmorpg/service-common v0.0.0-20260124144615-81e422d3049f/go.mod h1:mMhZcumphj6gaVTppVYsMTkd+5HupmQgAc53Pd4MH9I=
git.hlsq.asia/mmorpg/service-common v0.0.0-20260125091651-f22d22cbdc57 h1:u+BKY8YAm1gA9EL3Tw3KfzKRmZ3TgBMkFQurltLl438=
git.hlsq.asia/mmorpg/service-common v0.0.0-20260125091651-f22d22cbdc57/go.mod h1:mMhZcumphj6gaVTppVYsMTkd+5HupmQgAc53Pd4MH9I=
github.com/BurntSushi/toml v1.2.0 h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0=
github.com/BurntSushi/toml v1.2.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/IBM/sarama v1.46.3 h1:njRsX6jNlnR+ClJ8XmkO+CM4unbrNr/2vB5KK6UA+IE=