Update connection string information

This commit is contained in:
Chandler Swift 2020-03-20 11:37:17 -05:00
parent 607650613b
commit b8343c70cd
2 changed files with 3 additions and 1 deletions

View file

@ -12,6 +12,7 @@ import (
type serverData struct { type serverData struct {
IPAddr string IPAddr string
Port int
Title string Title string
Players string Players string
} }
@ -61,6 +62,7 @@ func main() {
data := serverData{ data := serverData{
*serverAddr, *serverAddr,
34197,
"Server with Bob's Mod, est. Feb 2020", "Server with Bob's Mod, est. Feb 2020",
playersOnline, playersOnline,
} }

View file

@ -12,7 +12,7 @@
<body> <body>
<h1>blackolivepineapple.pizza Factorio Server</h1> <h1>blackolivepineapple.pizza Factorio Server</h1>
<ul> <ul>
<li><b>IP Address:</b> {{.IPAddr}}</li> <li><b>Connection String:</b> {{.IPAddr}}{{if .Port != 34197}}:{{.Port}}{{end}}</li>
<li><b>Server Name:</b> {{.Title}}</li> <li><b>Server Name:</b> {{.Title}}</li>
<li><b>Current players:</b><br>{{.Players}}</li> <li><b>Current players:</b><br>{{.Players}}</li>
</ul> </ul>