let tls use dns

This commit is contained in:
psyc://psyced.org/~lynX 2014-03-04 09:45:05 +01:00
commit 25d6a5d4cb
3 changed files with 15 additions and 4 deletions

View File

@ -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>

View File

@ -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";

View File

@ -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) {