Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
JensvandeWiel committed Nov 6, 2023
1 parent 8e521d4 commit 71228e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,8 @@ func (s *Server) IsServerRunning() bool {
func (s *Server) CreateArguments() []string {
var args []string = []string{}

args = append(args, s.ServerMap+"?listen")
args = append(args, s.ServerMap+"?listen"+"?SessionName="+s.ServerName)
args = append(args, "?MultiHome="+s.IpAddress)
args = append(args, "?SessionName="+s.ServerName)
args = append(args, "?Port="+strconv.Itoa(s.ServerPort))
args = append(args, "?QueryPort="+strconv.Itoa(s.QueryPort))
args = append(args, "?RCONEnabled=true?RCONServerGameLogBuffer=600?RCONPort="+strconv.Itoa(s.RCONPort))
Expand All @@ -192,6 +191,7 @@ func (s *Server) CreateArguments() []string {
if s.Mods != "" {
args = append(args, "-mods="+s.Mods)
}
args = append(args, "-WinLiveMaxPlayers="+strconv.Itoa(s.MaxPlayers))

extraArgs := strings.Split(s.ExtraDashArgs, " ")

Expand Down

0 comments on commit 71228e0

Please sign in to comment.