YesNoOk
  1. Welcome!
    EosAlpha BBS is a fork of the popular Simple Machines Forum software. We aim at creating a new forum software, adding several new features and a modern and fresh design on top of the existing SMF code base.

    This software is currently in an early stage of development and this forum acts primarily as a testing platform for the ongoing development.

    Feel free to look around to get an idea about how it feels and looks.
avatar

Request ipv6 (Read 2414 times)

Started by Valodim, July 22, 2012, 20:20:42

0 Members and 1 Guest are viewing this.
Share this topic:
#1
ipv6 |
July 22, 2012, 20:20:42
I remember a few years ago, ipv6 addresses would throw bad errors because smf didn't expect anything besides a valid ipv4 in $_SERVER['REMOTE_ADDR']. Newer versions including Eos Alpha simply ignore them, shielding users from a lot of moderation options.

But.... it's 2012. Forum softwares should support ipv6 :)
#2
Re: ipv6 |
July 22, 2012, 21:14:14
Yup, it should. There is a patch for SMF (2.1 - development branch) to support IPv6 and I believe it would work for EoS as well. It's just a matter of merging it...

     Posted: July 23, 2012, 06:30:39
Okay... done.

Will push this later today. However, before you pull, you need to update the {db_prefix}ban_items table.
Code: (mysql)
#
# Table structure for table `ban_items`
#
CREATE TABLE {$db_prefix}ban_items (
  id_ban mediumint( 8 ) unsigned NOT NULL auto_increment,
  id_ban_group smallint(5) unsigned NOT NULL default '0',
  ip_low1 smallint(255) unsigned NOT NULL default '0',
  ip_high1 smallint(255) unsigned NOT NULL default '0',
  ip_low2 smallint(255) unsigned NOT NULL default '0',
  ip_high2 smallint(255) unsigned NOT NULL default '0',
  ip_low3 smallint(255) unsigned NOT NULL default '0',
  ip_high3 smallint(255) unsigned NOT NULL default '0',
  ip_low4 smallint(255) unsigned NOT NULL default '0',
  ip_high4 smallint(255) unsigned NOT NULL default '0',
  ip_low5 smallint(255) unsigned NOT NULL default '0',
  ip_high5 smallint(255) unsigned NOT NULL default '0',
  ip_low6 smallint(255) unsigned NOT NULL default '0',
  ip_high6 smallint(255) unsigned NOT NULL default '0',
  ip_low7 smallint(255) unsigned NOT NULL default '0',
  ip_high7 smallint(255) unsigned NOT NULL default '0',
  ip_low8 smallint(255) unsigned NOT NULL default '0',
  ip_high8 smallint(255) unsigned NOT NULL default '0',
  hostname varchar(255) NOT NULL default '',
  email_address varchar(255) NOT NULL default '',
  id_member mediumint( 8 ) unsigned NOT NULL default '0',
  hits mediumint( 8 ) unsigned NOT NULL default '0',
  PRIMARY KEY (id_ban),
  KEY id_ban_group (id_ban_group)
) ENGINE=MyISAM;

Code is from SMF 2.1 alpha (development branch), so it is most likely totally (or almost completely) untested.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork
1 Like It 
#3
Re: ipv6 |
July 23, 2012, 18:30:31
getting fatal error call to undefined function constructBanQueryIP on this site. check Security.php line 251. that line is never executed if($user_info['is_admin']) ;)
1 Useful 
#4
Re: ipv6 |
July 30, 2012, 08:16:02
Arantor wrote support for IPv6 into Wedge about a year ago. We have yet to see any issues with it.
Since Wedge will be MPL'ed, I'd suggest as an alternative to: revert this commit, wait for Wedge alpha to be out, and take our working IPv6 code. (It would also be a good opportunity to switch EosAlpha to MPL, which I find is a more solid permissive license than BSD/MIT for 'obscure' projects like both Wedge and EosAlpha.)
__
  Wedge
« Everyone knows rock attained perfection in 1974.
It's a scientific fact. » (Homer Simpson)