Commit Graph

4389 Commits

Author SHA1 Message Date
Donal Cahill 0a3ef43a2e Fix string comparison. 2015-12-13 23:23:12 +00:00
Donal Cahill 15c200c908 Disallow CIDR /00000 2015-12-13 23:16:58 +00:00
Donal Cahill 2ec724a256 Fix char comparison. 2015-12-13 20:13:19 +00:00
Donal Cahill db7e1ef162 Fix up CIDR code. 2015-12-13 15:36:35 +00:00
Donal Cahill 56c97af14b Improve code quality. 2015-12-13 12:23:08 +00:00
Donal Cahill a5540557ac Fix another memory leak. 2015-12-13 08:10:40 +00:00
Donal Cahill 8748abb525 Try to fix memory leak. 2015-12-13 07:58:04 +00:00
Donal Cahill d6b839ef85 Remove AI_ADDRCONFIG from CIDR IP conversion.
IPv6 tests will fail if AI_ADDRCONFIG is set. It's not really needed.
2015-12-13 07:39:10 +00:00
Donal Cahill b4bb4fa0cd Add support for CIDR notation in allowed hosts list.
Fixes #207
2015-12-13 06:31:51 +00:00
Alexey Sokolov 16a8c77737 Replace virtual with override where possible.
Using clang-tidy
2015-12-08 20:51:50 +00:00
Alexey Sokolov 79e979e5cd Fix tabs/spaces inside comments 2015-12-07 01:07:45 +00:00
Alexey Sokolov d185d6f22d clang-format: switch tabs to spaces
I like tabs, but I have to admit that spaces make source code more
consistent, because every editor/viewer tends to render tabs differently :(
2015-12-07 00:53:30 +00:00
Alexey Sokolov 3861b6a583 Fix several comments broken by clang-format 2015-12-07 00:53:01 +00:00
Alexey Sokolov 33b0627d75 Add clang-format configuration.
For now, it uses tabs like before, to make the diff easier to read/check.
One of following commits will switch it to spaces.
2015-12-07 00:53:01 +00:00
Alexey Sokolov 02f8749a8b Protect some parts of code from clang-format 2015-12-07 00:48:58 +00:00
Alexey Sokolov 7869de1e0f Decrease max select()/poll() timeout to 5 sec.
With signals on a different thread, select() isn't interrupted anymore.
Probably need to wake up it differently now...
2015-12-06 16:16:29 +00:00
Alexey Sokolov e3da51cfaa Add comment
[skip ci]
2015-12-06 14:39:41 +00:00
Alexey Sokolov 582cd635f5 Fix --disable-tdns (thanks kerio) 2015-12-06 12:36:16 +00:00
Alexey Sokolov ec73703865 Add threads and encoding to doxygen output. 2015-12-06 01:16:58 +00:00
Alexey Sokolov d45743e0a2 Merge pull request #1174 from DarthGandalf/thread
Rework signal handling and use C++11 threads.
2015-12-06 00:53:58 +00:00
Alexey Sokolov 9c48119897 Use C++11 threads instead of custom pthread wrappers.
Signal handling of CThread was handled in previous commit.
2015-12-06 00:11:15 +00:00
Alexey Sokolov dfa94d6bc1 Move Unix signal processing to a dedicated thread. 2015-12-06 00:10:06 +00:00
Alexey Sokolov 85700bdee3 Add a comment for #820 and #1012 2015-12-05 18:04:32 +00:00
Alexey Sokolov 52a4548d51 Fix style a bit. 2015-12-05 17:54:23 +00:00
Adam 47f887ce43 Add SNI client support
Close #1200
2015-12-05 17:48:13 +00:00
Alexey Sokolov b2ed9d7615 Fix bad merge of Csocket submodule 2015-11-30 08:19:04 +00:00
Alexey Sokolov 7f6fc6643e Merge branch 'master' into notify
Conflicts:
    test/Integration.cpp
2015-11-30 08:02:47 +00:00
Alexey Sokolov d736397194 Small change for test of notify_connect for better variety 2015-11-30 08:00:51 +00:00
Alexey Sokolov bee266a08e Fix test after fixing #1190 2015-11-29 12:26:17 +00:00
Alexey Sokolov 569f057561 Call CTCP callback for actions too, as it was before switch to CMessage.
Partyline had both of callbacks, one of which is redundant.

Fix #1134
Fix #1190
2015-11-29 00:59:50 +00:00
Alexey Sokolov 391f89d6e2 Travis: notify #znc-dev through ZNC-Linker 2015-11-28 19:21:43 +00:00
Oleh Prypin 50edbd5f0d Test notify_connect module 2015-11-27 12:20:33 +02:00
Alexey Sokolov 45f661e496 Merge pull request #1192 from nospampleasemam/support-separate-sslkeyfile
support for separate SSLKeyFile configuration
2015-11-27 01:38:45 +00:00
Oleh Prypin facec8d4a3 Show client identification in notify_connect module 2015-11-26 17:00:30 +02:00
Alexey Sokolov b7aff7f7ea Don't bump compiler requirements from GCC 4.7 to GCC 4.8 yet.
Fix #1189
2015-11-26 14:02:15 +00:00
Dylan Lloyd dcd259778a support separate SSLKeyFile & SSLDHParamFile configuration 2015-11-25 17:00:23 -08:00
Alexey Sokolov 1ab7fbf3b9 Revert "znc.service.in: start after network-online.target"
This reverts commit 43f2253f2d.

See https://github.com/znc/znc/issues/1165#issuecomment-159006828 and above.
2015-11-25 00:04:51 +00:00
Alexey Sokolov 0b9c7f7436 modperl: provide operator "" for ZNC::String 2015-11-23 09:57:48 +00:00
Alexey Sokolov cbf5c38d0a Teach modperl and modpython about CMessage and new hooks which accept it.
Fix #1084
Fix #1085
2015-11-22 23:39:30 +00:00
Alexey Sokolov 11b19a63f1 Fix behavior of HALTCORE and HALTMODS for On*BufferPlayLine after introduction of CMessage. 2015-11-22 23:36:03 +00:00
Alexey Sokolov 103ed00861 Move Message assertions to special cast operators.
Don't use static_cast directly anymore, but use these operators.
2015-11-21 12:13:54 +00:00
Alexey Sokolov f33809585f Move Message sizes asserts to their definitions, and add missing ones. 2015-11-21 10:50:52 +00:00
Alexey Sokolov c283d7a07b Fix include guard of Message.h 2015-11-21 10:35:03 +00:00
Alexey Sokolov f3bc06c47d Revert "znc.service.in: add datadir & instructions"
This reverts commit 28f7f57666.

Close #1165
2015-11-21 00:40:24 +00:00
Alexey Sokolov 2cb6599c87 Merge pull request #1184 from TingPing/tingping/servicefile
Fix bindir in service file
2015-11-15 23:34:38 +00:00
Patrick Griffis be60ebb4b7 Fix bindir in service file 2015-11-15 18:26:15 -05:00
Alexey Sokolov 622b48427c Merge pull request #1166 from Mikaela/systemd
znc.service.in: add datadir & instructions
2015-11-15 22:28:51 +00:00
Alexey Sokolov 6ec64ebfba Merge branch '1.6.x'
Conflicts:
	ChangeLog.md
	configure.ac
	third_party/Csocket
2015-11-15 18:21:11 +00:00
Alexey Sokolov 840acbfb5d Merge branch '1.6.x' of github.com:znc/znc into 1.6.x 2015-11-15 18:00:48 +00:00
Alexey Sokolov e2d313d3ba Revert version changes after releasing 1.6.2 to 1.6.x 2015-11-15 17:59:43 +00:00