From 8d8f1f264e758707a6997bd0b3ed78aec60ef9c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Fri, 6 May 2022 21:25:38 +0200 Subject: 0.0.7 --- CHANGELOG | 42 +----------------------------------------- debian/changelog | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ ircxmpp.c | 27 +++++++++++++++------------ 3 files changed, 64 insertions(+), 53 deletions(-) mode change 100644 => 120000 CHANGELOG create mode 100644 debian/changelog diff --git a/CHANGELOG b/CHANGELOG deleted file mode 100644 index e91602a..0000000 --- a/CHANGELOG +++ /dev/null @@ -1,41 +0,0 @@ -ircxmpp (0.0.6-1) stable; urgency=low - - * implemented a built-in DNS server for rDNS PTR spoofing of IRC bridges - - DNS server is untested and you should not use it - * fixed bug - - -- Anton Luka Šijanec Mon, 2 May 2022 00:45:00 +0200 - -ircxmpp (0.0.5-1) stable; urgency=low - - * Decreased default event loop delay to 10 miliseconds. - * Fixed crash on IRC leave. - - -- Anton Luka Šijanec Sat, 30 Apr 2022 21:40:00 +0200 - -ircxmpp (0.0.4-1) stable; urgency=low - - * Minor change from previous release, as it did not build - - -- Anton Luka Šijanec Sat, 30 Apr 2022 17:15:00 +0200 - -ircxmpp (0.0.3-1) stable; urgency=low - - * Fixed newline message smuggling from XMPP to IRC. - * Added support for multiple links. - * Added custom logging support and ability to use as a library. - * Switched from a linked list to a tsearch(3) binary tree. - - -- Anton Luka Šijanec Sat, 30 Apr 2022 17:00:00 +0200 - -ircxmpp (0.0.2-1) stable; urgency=low - - * Some fixes. - - -- Anton Luka Šijanec Wed, 27 Apr 2022 15:45:00 +0200 - -ircxmpp (0.0.1-1) stable; urgency=low - - * Initial release. - - -- Anton Luka Šijanec Wed, 27 Apr 2022 14:00:00 +0200 diff --git a/CHANGELOG b/CHANGELOG new file mode 120000 index 0000000..d526672 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1 @@ +debian/changelog \ No newline at end of file diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7e7cbbd --- /dev/null +++ b/debian/changelog @@ -0,0 +1,48 @@ +ircxmpp (0.0.7-1) stable; urgency=low + + * fixed obvious bug in dns server that breaks everything, DO NOT USE 0.0.6 + - still; DNS server is untested and you should not use it + + -- Anton Luka Šijanec Fri, 6 May 2022 21:25:00 +0200 + +ircxmpp (0.0.6-1) stable; urgency=low + + * implemented a built-in DNS server for rDNS PTR spoofing of IRC bridges + - DNS server is untested and you should not use it + * fixed bug + + -- Anton Luka Šijanec Mon, 2 May 2022 00:45:00 +0200 + +ircxmpp (0.0.5-1) stable; urgency=low + + * Decreased default event loop delay to 10 miliseconds. + * Fixed crash on IRC leave. + + -- Anton Luka Šijanec Sat, 30 Apr 2022 21:40:00 +0200 + +ircxmpp (0.0.4-1) stable; urgency=low + + * Minor change from previous release, as it did not build + + -- Anton Luka Šijanec Sat, 30 Apr 2022 17:15:00 +0200 + +ircxmpp (0.0.3-1) stable; urgency=low + + * Fixed newline message smuggling from XMPP to IRC. + * Added support for multiple links. + * Added custom logging support and ability to use as a library. + * Switched from a linked list to a tsearch(3) binary tree. + + -- Anton Luka Šijanec Sat, 30 Apr 2022 17:00:00 +0200 + +ircxmpp (0.0.2-1) stable; urgency=low + + * Some fixes. + + -- Anton Luka Šijanec Wed, 27 Apr 2022 15:45:00 +0200 + +ircxmpp (0.0.1-1) stable; urgency=low + + * Initial release. + + -- Anton Luka Šijanec Wed, 27 Apr 2022 14:00:00 +0200 diff --git a/ircxmpp.c b/ircxmpp.c index d04ee3e..09d9d46 100644 --- a/ircxmpp.c +++ b/ircxmpp.c @@ -810,17 +810,20 @@ int main (void) { if (getenv(b)) domain = getenv(b); } - struct dns * dns = dns_init(); - char buf[512+strlen(domain)]; - strcpy(buf, "ircxmpp.no.domain.set.yet."); - strcat(buf, domain); - dns_set_domain(dns, buf); - if (getenv("IX_DNS_PORT")) - dns_set_port(dns, atoi(getenv("IX_DNS_PORT"))); - if (getenv("IX_DNS_IP")) - dns_set_ip(dns, getenv("IX_DNS_IP")); - dns_set_log_handler(dns, dns_default_log_handler); - dns_set_log_userdata(dns, NULL); // so we don't read uninitialized values + struct dns * dns = NULL; + if (domain) { + dns = dns_init(); + char buf[512+strlen(domain)]; + strcpy(buf, "ircxmpp.no.domain.set.yet."); + strcat(buf, domain); + dns_set_domain(dns, buf); + if (getenv("IX_DNS_PORT")) + dns_set_port(dns, atoi(getenv("IX_DNS_PORT"))); + if (getenv("IX_DNS_IP")) + dns_set_ip(dns, getenv("IX_DNS_IP")); + dns_set_log_handler(dns, dns_default_log_handler); + dns_set_log_userdata(dns, NULL); // so we don't read uninitialized values + } signal(SIGTERM, signalhandler); signal(SIGINT, signalhandler); // signal(SIGPIPE, SIG_IGN); @@ -831,7 +834,7 @@ int main (void) { .tv_sec = 0, .tv_nsec = getenv("IX_LOOPDELAY") ? atoi(getenv("IX_LOOPDELAY"))/1000 : 1e7 }; - if (domain) + if (dns) dns_run_once(dns); nanosleep(&ts, NULL); } -- cgit v1.2.3