mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-08 11:31:01 +00:00
let tls use dns
This commit is contained in:
commit
25d6a5d4cb
@ -1,4 +1,3 @@
|
||||
// this room lets people in who are either connected via a SSL/TLS
|
||||
// protocol or are coming from the localhost (probably SSH users).
|
||||
//
|
||||
// both cases are no absolute guarantee for safety.. it is still
|
||||
@ -6,7 +5,17 @@
|
||||
//
|
||||
// -lynX 2004
|
||||
|
||||
#include <net.h>
|
||||
|
||||
#define NAME "CryptoChat"
|
||||
#define SECURE
|
||||
|
||||
// should work like this, but there's a bug to fix here...
|
||||
// when trying to call https://psyced.org:33333/@cryptochat
|
||||
//
|
||||
//efine PLACE_HISTORY
|
||||
#define PLACE_SCRATCHPAD
|
||||
//efine PLACE_OWNED "ioerror"
|
||||
|
||||
#include <place.gen>
|
||||
|
||||
|
@ -15,6 +15,9 @@
|
||||
inherit PRO_PATH "library2";
|
||||
inherit PRO_PATH "http/library2";
|
||||
#else
|
||||
# ifdef __TLS__
|
||||
inherit NET_PATH "library/tls";
|
||||
# endif
|
||||
# ifdef SANDBOX
|
||||
inherit NET_PATH "library/sandbox";
|
||||
# endif
|
||||
@ -28,9 +31,6 @@ inherit NET_PATH "library/sasl";
|
||||
# endif
|
||||
inherit NET_PATH "library/share";
|
||||
inherit NET_PATH "library/signature";
|
||||
# ifdef __TLS__
|
||||
inherit NET_PATH "library/tls";
|
||||
# endif
|
||||
inherit NET_PATH "library/text";
|
||||
inherit NET_PATH "library/time";
|
||||
inherit NET_PATH "library/uniform";
|
||||
|
@ -555,6 +555,8 @@ int is_localhost(string host) {
|
||||
// we should know all of our hostnames in advance for
|
||||
// security anyway
|
||||
return member(localhosts, lower_case(host));
|
||||
// that means that we have to restart the server each time
|
||||
// the dial-up IP changes.. :(
|
||||
}
|
||||
#else
|
||||
int is_localhost(string host, closure callback, varargs array(mixed) extra) {
|
||||
|
Loading…
Reference in New Issue
Block a user