1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

introducing TLS requirement for IRC users

This commit is contained in:
psyc://loupsycedyglgamf.onion/~lynX 2018-07-30 19:32:12 +02:00
parent 372e704a58
commit fbc563a94e
4 changed files with 28 additions and 2 deletions

View file

@ -33,7 +33,7 @@ inherit NET_PATH "queue";
// this mapping has to be *volatile* or it will carry old hostnames
// that may no longer be valid, then cause wild illogical behaviour
volatile mapping localhosts = ([
"localhost": "127.0.0.1",
"localhost": "127.0.0.1", // what if remote hosts dns-resolve to "localhost" ?
"127.0.0.1": "localhost",
// unusual but valid syntax for localhost
// then again usually any 127.* leads to localhost so it's

View file

@ -203,6 +203,7 @@ int probably_private(object source) {
// LPC variable, so it is fine we call it often
|| query_ip_number(source) == __HOST_IP_NUMBER__
# ifdef SECURE_IP_NUMBER
// problem: apparently this macro isn't defined when library is compiled
|| SECURE_IP_NUMBER(query_ip_number(source))
# endif
// People coming from localhost have either made it