mirror of
https://github.com/PretendoNetwork/wiiu-chat-secure.git
synced 2026-04-26 01:03:11 -05:00
fix: use port number from env variable
This commit is contained in:
parent
21ee23b809
commit
6b5314b9a8
|
|
@ -2,6 +2,8 @@ package nex
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"strconv"
|
||||
|
||||
nex "github.com/PretendoNetwork/nex-go/v2"
|
||||
_ "github.com/PretendoNetwork/nex-protocols-go/v2"
|
||||
|
|
@ -36,5 +38,7 @@ func StartNEXServer() {
|
|||
registerCommonProtocols()
|
||||
registerNEXProtocols()
|
||||
|
||||
globals.NEXServer.Listen(":" + os.Getenv("PN_WIIU_CHAT_SECURE_SERVER_PORT"))
|
||||
port, _ := strconv.Atoi(os.Getenv("PN_WIIU_CHAT_SECURE_SERVER_PORT"))
|
||||
|
||||
globals.SecureServer.Listen(port)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user