Skip to content

Commit

Permalink
Alter MESSAGE_PATTERN_OLD & MESSAGE_PATTERN_OLDER to make :PORT optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Camble committed Jul 11, 2024
1 parent 269f62b commit d0947bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Scripts/DCS-SRS/Scripts/DCS-SRSGameGUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ SRS.sendUpdate = function(playerID)
socket.try(SRS.UDPSendSocket:sendto(_jsonUpdate, "127.0.0.1", 9087))
end

SRS.MESSAGE_PATTERN_OLDER = "This server is running SRS on - (%d+%.%d+%.%d+%.%d+:%d+)" -- DO NOT MODIFY!!!
SRS.MESSAGE_PATTERN_OLD = "SRS Running @ (%d+%.%d+%.%d+%.%d+:%d+)" -- DO NOT MODIFY!!!
SRS.MESSAGE_PATTERN = "SRS Running on (%d+)" -- DO NOT MODIFY!!!
SRS.MESSAGE_PATTERN_OLDER = "This server is running SRS on - (%d+%.%d+%.%d+%.%d+:?%d*)" -- DO NOT MODIFY!!!
SRS.MESSAGE_PATTERN_OLD = "SRS Running @ (%d+%.%d+%.%d+%.%d+:?%d*)" -- DO NOT MODIFY!!!
SRS.MESSAGE_PATTERN = "SRS Running on (%d+)" -- DO NOT MODIFY!!!

function string.startsWith(string, prefix)
return string.sub(string, 1, string.len(prefix)) == prefix
Expand Down

0 comments on commit d0947bf

Please sign in to comment.