Dev/ip

From Eggdrop Wiki

Jump to: navigation, search

Contents

The situation:

In 1.6, Eggdrop has 3 different variables involved in IP-address assignment. "my-ip", "my-hostname" and "nat-ip".

In 1.8, "my-hostname" will disappear, as it's possible to set the new variables to either an ip or a hostname.

"nat-ip" will stay the same as in 1.6 in all of the cases below, so it's not being discussed here.

Here are some routes which have been discussed:

Four variables route

Users should be able to specify IPs for incoming and outgoing connections, with separate variables for IPv4 and IPv6.

Sample config:

set vhost4 "127.0.0.1"
set vhost6 "::1"
set listen-addr4 "127.0.0.1"
set listen-addr6 "::1"
listen 3333 all


Three variables route

Users should be able to specify IPs for incoming ipv4 and ipv6 connections, but are expected to run the listen command between changing the variable that holds the listening address.

Sample config:

set vhost4 "127.0.0.1"
set vhost6 "::1"
set listen-addr "127.0.0.1"
listen 3333 all
set listen-addr "::1"
listen 3333 all


Change [listen] route

The listen command should be changed to accept an address argument, while maintaining backwards compatibility.

Sample config:

set vhost4 "127.0.0.1"
set vhost6 "::1"
listen 127.0.0.1:3333 all
listen ::1,3333 all


  • Note: We'd still need some kind of listen-variable for some modules
Retrieved from "http://eggwiki.org/Dev/ip"
Personal tools