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 {
IPAddr string
Port int
Title string
Players string
}
@ -61,6 +62,7 @@ func main() {
data := serverData{
*serverAddr,
34197,
"Server with Bob's Mod, est. Feb 2020",
playersOnline,
}

View file

@ -12,7 +12,7 @@
<body>
<h1>blackolivepineapple.pizza Factorio Server</h1>
<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>Current players:</b><br>{{.Players}}</li>
</ul>