1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 18:03:12 +02:00

fix DNS (the bug I created a week ago, anyway)

This commit is contained in:
Bram Matthys
2015-06-27 09:07:33 +02:00
parent 51326523cf
commit 7c99a8a5f8
+2
View File
@@ -689,6 +689,8 @@ static int check_init(aClient *cptr, char *sockn, size_t size)
struct SOCKADDR_IN sk;
int len = sizeof(struct SOCKADDR_IN);
strlcpy(sockn, cptr->sockhost, HOSTLEN);
RunHookReturnInt3(HOOKTYPE_CHECK_INIT, cptr, sockn, size, ==0);
/* Some silly hack to convert 127.0.0.1 and such into 'localhost' */