diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-05-06 21:25:38 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-05-06 21:25:38 +0200 |
commit | 8d8f1f264e758707a6997bd0b3ed78aec60ef9c9 (patch) | |
tree | 2a53ac9fc4f759f6e7c5dc68b85042a96ffe6d43 | |
parent | 0.0.6 (diff) | |
download | ircxmpp-8d8f1f264e758707a6997bd0b3ed78aec60ef9c9.tar ircxmpp-8d8f1f264e758707a6997bd0b3ed78aec60ef9c9.tar.gz ircxmpp-8d8f1f264e758707a6997bd0b3ed78aec60ef9c9.tar.bz2 ircxmpp-8d8f1f264e758707a6997bd0b3ed78aec60ef9c9.tar.lz ircxmpp-8d8f1f264e758707a6997bd0b3ed78aec60ef9c9.tar.xz ircxmpp-8d8f1f264e758707a6997bd0b3ed78aec60ef9c9.tar.zst ircxmpp-8d8f1f264e758707a6997bd0b3ed78aec60ef9c9.zip |
l---------[-rw-r--r--] | CHANGELOG | 42 | ||||
-rw-r--r-- | debian/changelog | 48 | ||||
-rw-r--r-- | ircxmpp.c | 27 |
3 files changed, 64 insertions, 53 deletions
diff --git a/CHANGELOG b/CHANGELOG index e91602a..d526672 100644..120000 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,41 +1 @@ -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 <anton@sijanec.eu> 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 <anton@sijanec.eu> 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 <anton@sijanec.eu> 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 <anton@sijanec.eu> Sat, 30 Apr 2022 17:00:00 +0200 - -ircxmpp (0.0.2-1) stable; urgency=low - - * Some fixes. - - -- Anton Luka Šijanec <anton@sijanec.eu> Wed, 27 Apr 2022 15:45:00 +0200 - -ircxmpp (0.0.1-1) stable; urgency=low - - * Initial release. - - -- Anton Luka Šijanec <anton@sijanec.eu> Wed, 27 Apr 2022 14:00:00 +0200 +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 <anton@sijanec.eu> 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 <anton@sijanec.eu> 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 <anton@sijanec.eu> 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 <anton@sijanec.eu> 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 <anton@sijanec.eu> Sat, 30 Apr 2022 17:00:00 +0200 + +ircxmpp (0.0.2-1) stable; urgency=low + + * Some fixes. + + -- Anton Luka Šijanec <anton@sijanec.eu> Wed, 27 Apr 2022 15:45:00 +0200 + +ircxmpp (0.0.1-1) stable; urgency=low + + * Initial release. + + -- Anton Luka Šijanec <anton@sijanec.eu> Wed, 27 Apr 2022 14:00:00 +0200 @@ -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); } |