diff --git a/BUILDING b/BUILDING index c75c94d..a997a11 100644 --- a/BUILDING +++ b/BUILDING @@ -98,7 +98,15 @@ so that it only contains DCS x-reflectors (DCSXXX), DStar reflectors (REFXXX) an X-reflectors (XRFXXX) and it will put all x-reflectors on port 20001 so you won't need any port-forwarding on your home router. -Based on the above discussion, execute either "./get_reflectors.sh" or +There is another script, reflist.sh, that will download REF, XRF and DCS reflectors +from the W6KD file server. This has the advantage over VA3UV in that the reflector +IP address are in dotted-name format, rather than dotted-number format. These +dotted-name IP address will be resolved to dotted-number by g2_link when it starts +up. The hope is that dotted-name IP addresses will change less frequently than +dotted-number addresses, so this method should last longer than the other two +methods. + +Based on the above discussion, execute either "./reflist.sh", "./get_reflectors.sh" or "./get_gwy_list.sh". If you want to be able to update your hotspot dynamically, you can modify either one of these scripts by adding a "reboot" or "service g2_link restart" command at the end and moving it to /usr/local/etc/exec_?X.sh diff --git a/IRCDDBApp.cpp b/IRCDDBApp.cpp index 1ef6186..440dae3 100644 --- a/IRCDDBApp.cpp +++ b/IRCDDBApp.cpp @@ -21,7 +21,7 @@ public: unsigned int usn; IRCDDBAppUserObject() { - IRCDDBAppUserObject ("", "", ""); +// IRCDDBAppUserObject ("", "", ""); } IRCDDBAppUserObject(const std::string &n, const std::string &nm, const std::string &h) { diff --git a/g2.everything.cfg b/g2.everything.cfg index 580fa4a..bfaffe3 100644 --- a/g2.everything.cfg +++ b/g2.everything.cfg @@ -68,8 +68,8 @@ module = { # desc1 = "" # desc2 = "" - # the url of your repeater, 80 chars max, defaults to "github.com/n7tae/g2_ircddb -# url = "" # 80 char max, defaults to "github.com/n7tae/g2_ircddb + # the url of your repeater, 80 chars max, defaults to "github.com/n7tae/g2_ircddb" +# url = "" # If you want to enable/disable the repeater, set these options. # Each of these options can NOT be more than 8 characters. diff --git a/g2_ircddb.cpp b/g2_ircddb.cpp index f21acea..5ea411e 100644 --- a/g2_ircddb.cpp +++ b/g2_ircddb.cpp @@ -2673,7 +2673,7 @@ int main(int argc, char **argv) break; } - /* Open udp INTERNAL port */ + /* Open udp INTERNAL port (default: 19000) */ srv_sock = open_port(g2_internal); if (0 > srv_sock) { traceit("Can't open %s:%d\n", g2_internal.ip.c_str(), g2_internal.port); diff --git a/reflist.sh b/reflist.sh new file mode 100755 index 0000000..b922153 --- /dev/null +++ b/reflist.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +wget ftp://dschost1.w6kd.com/DExtra_Hosts.txt +wget ftp://dschost1.w6kd.com/DPlus_Hosts.txt +wget ftp://dschost1.w6kd.com/DCS_Hosts.txt + +/bin/rm -f gwys.txt + +echo "# Downloaded from dschost1.w6kd.com `date`" > gwys.txt +awk '$1 ~ /^REF/ { printf "%s %s 20001\n", $1, $2 }' DPlus_Hosts.txt >> gwys.txt +awk '$1 ~ /^XRF/ { printf "%s %s 30001\n", $1, $2 }' DExtra_Hosts.txt >> gwys.txt +awk '$1 ~ /^DCS/ { printf "%s %s 30051\n", $1, $2 }' DCS_Hosts.txt >> gwys.txt + +/bin/rm -f D{Extra,Plus,DSC}_Hosts.txt