handle TransitMessage

This commit is contained in:
wish
2022-08-05 01:57:56 +10:00
parent e9cc5cc3e2
commit 08a7b91e11
4 changed files with 94 additions and 21 deletions

View File

@@ -180,7 +180,13 @@ func main() {
DB: db,
DiscordBot: discordBot,
})
err = c.Start(int(ce.Port))
if ee.IP == "" {
c.IP = erupeConfig.Host
} else {
c.IP = ee.IP
}
c.Port = ce.Port
err = c.Start()
if err != nil {
preventClose(fmt.Sprintf("Failed to start channel server: %s", err.Error()))
} else {