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:
parent
372e704a58
commit
fbc563a94e
4 changed files with 28 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue