You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.
This bug is caused by using an /etc/hosts file with multiple entries for your local IP (happened on Mac OS X, not sure about others). Ideally people who run into this issue should fix their /etc/hosts file. Attached is a patch.
The text was updated successfully, but these errors were encountered:
diff -u irssi-2005.2.1/src/irc/core/irc-servers.c irssi-mod/src/irc/core/irc-servers.c
--- irssi-2005.2.1/src/irc/core/irc-servers.c Tue Oct 12 13:10:02 2004
+++ irssi-mod/src/irc/core/irc-servers.c Sun Jan 2 13:19:33 2005
@@ -142,8 +142,11 @@
}
/* Replace ':' with '_' in our own hostname (the same IPv6 problem) */
+ /* Replace '\n' and '\r' with '\0' in our own hostname to fix multiple PTR addreses */
for (ptr = hostname; *ptr != '\0'; ptr++) {
if (*ptr == ':') *ptr = '_';
+ if (*ptr == '\n') *ptr = '\0';
+ if (*ptr == '\r') *ptr = '\0';
}
/* don't allow hostname to begin with number or '+', '-'. those
This bug is caused by using an /etc/hosts file with multiple entries for your local IP (happened on Mac OS X, not sure about others). Ideally people who run into this issue should fix their /etc/hosts file. Attached is a patch.
The text was updated successfully, but these errors were encountered: