Demand a password
This commit is contained in:
parent
b0621bbb54
commit
571819a14b
@ -4,7 +4,7 @@ import (
|
|||||||
"github.com/tardisx/openttd-admin/pkg"
|
"github.com/tardisx/openttd-admin/pkg"
|
||||||
"flag"
|
"flag"
|
||||||
"strings"
|
"strings"
|
||||||
// "fmt"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -66,6 +66,11 @@ func main() {
|
|||||||
flag.IntVar(&port, "port", 3977, "The port number of the admin interface (default is 3977)")
|
flag.IntVar(&port, "port", 3977, "The port number of the admin interface (default is 3977)")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
if password == "" {
|
||||||
|
println("ERROR: You must supply a password")
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
server := admin.OpenTTDServer{}
|
server := admin.OpenTTDServer{}
|
||||||
|
|
||||||
for _, value := range daily {
|
for _, value := range daily {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user