Skip to content

Commit

Permalink
Merge pull request #21 from Aperture-Development/development
Browse files Browse the repository at this point in the history
Bugfixes
  • Loading branch information
ApertureDevelopment authored May 1, 2020
2 parents da28282 + fbd7988 commit c683cf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion addon.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"README.md",
"*.sql",
".git/*",
".git"
".git*",
".vscode*"
]
}
8 changes: 4 additions & 4 deletions lua/msync/server/sv_mysql.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function MSync.mysql.initialize()
`p_id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
`server_name` VARCHAR(75) NOT NULL,
`options` VARCHAR(100) NOT NULL DEFAULT '[]',
`ip` INT NOT NULL,
`ip` VARCHAR(15) NOT NULL,
`port` VARCHAR(5) NOT NULL,
`server_group` INT UNSIGNED NOT NULL,
FOREIGN KEY (server_group) REFERENCES tbl_server_grp(p_group_id),
Expand Down Expand Up @@ -153,14 +153,14 @@ function MSync.mysql.saveServer()
]] )

local hostname = GetHostName()
local ip, port = string.Split(game.GetIPAddress(), ":")
local gameAddress = string.Split(game.GetIPAddress(), ":")

if string.len(hostname) > 75 then
hostname = string.sub( hostname, 1, 75 )
end
addServer:setString(1, hostname)
addServer:setString(2, ip)
addServer:setString(3, port)
addServer:setString(2, gameAddress[1])
addServer:setString(3, gameAddress[2])
addServer:setString(4, MSync.settings.data.serverGroup)

function addServer.onSuccess()
Expand Down

0 comments on commit c683cf4

Please sign in to comment.