mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-09 20:11:00 +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).
|
// protocol or are coming from the localhost (probably SSH users).
|
||||||
//
|
//
|
||||||
// both cases are no absolute guarantee for safety.. it is still
|
// both cases are no absolute guarantee for safety.. it is still
|
||||||
@ -6,7 +5,17 @@
|
|||||||
//
|
//
|
||||||
// -lynX 2004
|
// -lynX 2004
|
||||||
|
|
||||||
|
#include <net.h>
|
||||||
|
|
||||||
#define NAME "CryptoChat"
|
#define NAME "CryptoChat"
|
||||||
#define SECURE
|
#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>
|
#include <place.gen>
|
||||||
|
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
inherit PRO_PATH "library2";
|
inherit PRO_PATH "library2";
|
||||||
inherit PRO_PATH "http/library2";
|
inherit PRO_PATH "http/library2";
|
||||||
#else
|
#else
|
||||||
|
# ifdef __TLS__
|
||||||
|
inherit NET_PATH "library/tls";
|
||||||
|
# endif
|
||||||
# ifdef SANDBOX
|
# ifdef SANDBOX
|
||||||
inherit NET_PATH "library/sandbox";
|
inherit NET_PATH "library/sandbox";
|
||||||
# endif
|
# endif
|
||||||
@ -28,9 +31,6 @@ inherit NET_PATH "library/sasl";
|
|||||||
# endif
|
# endif
|
||||||
inherit NET_PATH "library/share";
|
inherit NET_PATH "library/share";
|
||||||
inherit NET_PATH "library/signature";
|
inherit NET_PATH "library/signature";
|
||||||
# ifdef __TLS__
|
|
||||||
inherit NET_PATH "library/tls";
|
|
||||||
# endif
|
|
||||||
inherit NET_PATH "library/text";
|
inherit NET_PATH "library/text";
|
||||||
inherit NET_PATH "library/time";
|
inherit NET_PATH "library/time";
|
||||||
inherit NET_PATH "library/uniform";
|
inherit NET_PATH "library/uniform";
|
||||||
|
@ -555,6 +555,8 @@ int is_localhost(string host) {
|
|||||||
// we should know all of our hostnames in advance for
|
// we should know all of our hostnames in advance for
|
||||||
// security anyway
|
// security anyway
|
||||||
return member(localhosts, lower_case(host));
|
return member(localhosts, lower_case(host));
|
||||||
|
// that means that we have to restart the server each time
|
||||||
|
// the dial-up IP changes.. :(
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int is_localhost(string host, closure callback, varargs array(mixed) extra) {
|
int is_localhost(string host, closure callback, varargs array(mixed) extra) {
|
||||||
|
Loading…
Reference in New Issue
Block a user