Update connection string information
This commit is contained in:
parent
607650613b
commit
b8343c70cd
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue