Skip to content

Commit 95afab3

Browse files
committed
Make the advertisement server a const
1 parent 04a97c7 commit 95afab3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/advertiser/advertiser.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import (
1414
"github.com/JacksonTheMaster/StationeersServerUI/v5/src/managers/gamemgr"
1515
)
1616

17+
const StationeersAdvertisementEndpoint = "http://40.82.200.175:8081/Ping"
18+
1719
type ServerAdMessage struct {
1820
SessionId int
1921
Name string
@@ -75,7 +77,7 @@ func StartAdvertiser() {
7577
return
7678
}
7779
// Send advertisement
78-
resp, err := http.Post("http://40.82.200.175:8081/Ping", "application/json", bytes.NewBuffer(body))
80+
resp, err := http.Post(StationeersAdvertisementEndpoint, "application/json", bytes.NewBuffer(body))
7981
// Check for errors
8082
if err != nil {
8183
logger.Advertiser.Errorf("ServerAdvertiser failed to send request: %v", err)

0 commit comments

Comments
 (0)