Skip to content

Commit

Permalink
fix: IPv6 support (#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushaway committed Sep 2, 2023
1 parent 9345251 commit 6e2ae0d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/install/includes/sql/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ INSERT INTO `{prefix}_settings` (`setting`, `value`) VALUES
('config.enablefriendsbanning', '0'),
('config.enableadminrehashing', '1'),
('protest.emailonlyinvolved', '0'),
('config.version', '704'),
('config.version', '705'),
('config.enablesteamlogin', '1'),
('auth.maxlife', '1440'),
('auth.maxlife.remember', '10080'),
Expand Down
4 changes: 2 additions & 2 deletions web/install/includes/sql/struc.sql
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ CREATE TABLE IF NOT EXISTS `{prefix}_bans` (
`length` int(10) NOT NULL default '0',
`reason` text character set {charset} NOT NULL,
`aid` int(6) NOT NULL default '0',
`adminIp` varchar(32) NOT NULL default '',
`adminIp` varchar(128) NOT NULL default '',
`sid` int(6) NOT NULL default '0',
`country` varchar(4) default NULL,
`RemovedBy` int(8) NULL,
Expand Down Expand Up @@ -221,7 +221,7 @@ CREATE TABLE IF NOT EXISTS `{prefix}_comms` (
`length` int(10) NOT NULL DEFAULT '0',
`reason` text NOT NULL,
`aid` int(6) NOT NULL DEFAULT '0',
`adminIp` varchar(32) NOT NULL DEFAULT '',
`adminIp` varchar(128) NOT NULL DEFAULT '',
`sid` int(6) NOT NULL DEFAULT '0',
`RemovedBy` int(8) DEFAULT NULL,
`RemoveType` varchar(3) DEFAULT NULL,
Expand Down
9 changes: 9 additions & 0 deletions web/updater/data/705.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

$this->dbs->query("ALTER TABLE `:prefix_comms` MODIFY COLUMN `adminIp` VARCHAR(128) NOT NULL default ''");
$this->dbs->execute();

$this->dbs->query("ALTER TABLE `:prefix_bans` MODIFY COLUMN `adminIp` VARCHAR(128) NOT NULL default ''");
$this->dbs->execute();

return true;
3 changes: 2 additions & 1 deletion web/updater/store.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"701": "701.php",
"702": "702.php",
"703": "703.php",
"704": "704.php"
"704": "704.php",
"705": "705.php"
}

0 comments on commit 6e2ae0d

Please sign in to comment.