Commit graph

  • 01c418c4d5
    src/log.c errors should use errno, not ERRNO, as the latter actually uses WSAGetLastError() on Windows, which obviously makes no sense. This mistake comes from the original ircd_log() by the way. Bram Matthys 2021-07-13 19:58:14 +0200
  • 8ad675b824 Added 159.diff angryce 2021-07-13 17:58:04 +0000
  • 557d375ea6 added 146.diff angryce 2021-07-13 17:53:30 +0000
  • c25f4a4538
    Fix hang on a module attempting to assign (unusually) large amount of CAPs k4be 2021-07-12 21:00:38 +0200
  • 05aeba9ba9
    Get rid of Debug(()) function calls. I never use it anyway. Bram Matthys 2021-07-12 18:54:05 +0200
  • a57bdba220
    Move CONFIG_TEST/CONFIG_RUN stuff for logging from conf.c to log.c Bram Matthys 2021-07-12 18:00:41 +0200
  • 76b1d756dd
    Make ircd_log() call new unreal logger. Start of transition. Bram Matthys 2021-07-12 17:48:21 +0200
  • b871d2a177
    Add log::type for 'json' (work in progress) Bram Matthys 2021-07-12 17:23:27 +0200
  • f2eef5caca
    Remove old leftover code in logger Bram Matthys 2021-07-12 17:01:16 +0200
  • f89348d26c
    Add JSON logger - initial work Bram Matthys 2021-07-12 14:37:25 +0200
  • 757adc76dd
    Bump version to 6.0.0-git and start release notes with a clean slate. Bram Matthys 2021-07-12 14:17:46 +0200
  • c5a6f3c549
    Make CHATHISTORY subcommands case-insensitive. (#157) k4bek4be 2021-07-11 09:24:56 +0200
  • 0985728662
    Adding sequential-fallback autoconnect strategy (#151) Ramiro Bou 2021-07-11 04:24:14 -0300
  • 67bfd41e44
    chathistory: Use more explicit messages on INVALID_TARGET failure message (#150) Val Lorentz 2021-07-11 09:09:18 +0200
  • d726c3aadd
    Bump version to 5.2.2-git as this is git / work in progress. Bram Matthys 2021-07-10 10:03:14 +0200
  • d3c98c73c2
    Fix issue where saslmechlist could not be set by services server. This broke SASL services autodetection and also sasl=x,y,z in CAP. Reported by Valware in https://bugs.unrealircd.org/view.php?id=5960 Bram Matthys 2021-07-10 08:32:22 +0200
  • b70e168b89 Added polsaker's pull reqs angryce 2021-07-09 16:44:12 +0200
  • 8322a48026
    ** UnrealIRCd 5.2.1 ** Bram Matthys 2021-07-08 17:42:52 +0200
  • 0971cf7d70
    modules.optional.conf: example set::antirandom block: Use CIDR instead of standard wildcard. In this case, since it's antirandom, it is not really important as someone is not going to add DNS records specially to avoid triggering antirandom. That makes no sense since it is much easier to avoid using a random looking name. Main reason of changing it here is to set a good example. Bram Matthys 2021-07-07 14:17:18 +0200
  • b398c3d101
    Change default exempt from 127.* to 127.0.0.0/8 so it does not match arbitrary hosts that have a host starting with "127.". A rather stupid oversight on my part, really. Bram Matthys 2021-07-07 08:53:47 +0200
  • 141dd8acd0
    Load settings from 5.2.0.x dot releases as well Bram Matthys 2021-07-03 15:18:47 +0200
  • 94993a03ca
    ** UnrealIRCd 5.2.1-rc1 ** Bram Matthys 2021-07-03 14:38:28 +0200
  • 1d62ca1153
    Send account tag to recipient on INVITE. Reported by ProgVal in https://bugs.unrealircd.org/view.php?id=5951 Bram Matthys 2021-07-03 14:17:02 +0200
  • 527726be41
    Take message tags into account when calculating fake lag. Bram Matthys 2021-07-03 09:08:23 +0200
  • ee9db59d36
    Fix two more small memory leaks on REHASH. Now we are at zero leaks again with ASan, or so it seems. Bram Matthys 2021-07-02 11:42:00 +0200
  • 12299b45bf
    Fix small memory leak on REHASH (<1kb): free set::anti-flood block Bram Matthys 2021-07-02 10:56:51 +0200
  • abaed84190
    Order CHATHISTORY TARGETS response in descending order (newest first) https://bugs.unrealircd.org/view.php?id=5904 Bram Matthys 2021-07-02 10:41:30 +0200
  • 35f8598f3f
    Fix crash if using persistent channel history: if you had ANY rehash error (often completely unrelated to channel history) and you then rehashed again UnrealIRCd would crash. Reported by gh0st. May be the same issue as reported by adamus1red in https://bugs.unrealircd.org/view.php?id=5943 Bram Matthys 2021-07-02 09:12:01 +0200
  • f0db0735a8
    Update release notes a bit [skip ci] Bram Matthys 2021-06-30 13:32:20 +0200
  • 696d5f05fb
    Last argument in fd_open() is now used to indicate what should be done on a later fd_close() call. This also removes fd_map() since fd_open w/FDCLOSE_NONE now does that. Bram Matthys 2021-06-30 11:23:07 +0200
  • 329f48334c
    I/O engine: track if a fd is a file or socket, needed for Windows. Bram Matthys 2021-06-30 10:55:26 +0200
  • a44b1cb63e
    Fix ./unralircd genlinkblock printing out a confusing error message if you have serversonly listen block without tls. Reported by Valware in https://bugs.unrealircd.org/view.php?id=5945 Bram Matthys 2021-06-30 10:05:51 +0200
  • 0bd2cfd0fc
    Update file_exists() function to work with directories on Windows. And then let's use the similar (and faster) function on Linux too. Bram Matthys 2021-06-28 19:33:14 +0200
  • 137703f04a
    Add cipherscan profile for OpenSSL 3.0.0. Bram Matthys 2021-06-28 15:56:05 +0200
  • c586592516
    Add -nodes (no DES) to openssl command so it doesn't ask for a password on OpenSSL 3.0.0 and later when generating the standard self-signed certificate. Bram Matthys 2021-06-28 13:58:39 +0200
  • 088218817d
    Whitespace....... [skip ci] Bram Matthys 2021-06-28 13:07:02 +0200
  • 50089d340a
    Build test updates [skip ci] Bram Matthys 2021-06-28 13:02:36 +0200
  • cf5966cce4
    Call early_init_ssl() even more early, fixes './unrealircd module list' from crashing and other symptoms. Crash was introduced with the OpenSSL 3.0.0 changes from a541b8f4ad, so 9 days ago. Bram Matthys 2021-06-28 08:18:43 +0200
  • 26295151a9
    Add microsecond precision to TSCTL ALLTIME (#147) Ramiro Bou 2021-06-28 01:27:02 -0300
  • c667662e9b
    Windows: Allow UnrealIRCd to be terminated gracefully (without prompt) via taskill /im unrealircd.exe. Needed for BuildBot. Bram Matthys 2021-06-27 19:21:56 +0200
  • ec3407a42f
    Set -Wno-tautological-compare on clang 3.x (yeah old version), this to shut up false positives in buildbot. Bram Matthys 2021-06-27 18:13:52 +0200
  • 30155ddd7c
    Only call reinit_tls() when rehashing. Bram Matthys 2021-06-27 17:22:15 +0200
  • 79740c4a38
    Make "REHASH" and ./unrealircd rehash also run the same code as "REHASH -tls", if on OpenSSL 1.1.1 or later. Bram Matthys 2021-06-27 15:35:53 +0200
  • a8e52fdead
    Bump sjoin module version to 5.1 [skip ci] Bram Matthys 2021-06-27 07:41:21 +0200
  • c37c965506
    Fix SJOIN not properly propagated due to a copy-paste error in the SJSBY vs non-SJSBY code. Reported by puckipedia in https://bugs.unrealircd.org/view.php?id=5934 Bram Matthys 2021-06-27 07:37:26 +0200
  • 1347b33c14
    Update release notes [skip ci] Bram Matthys 2021-06-26 19:44:47 +0200
  • 2afc57aa38
    Use IsLoggedIn() macro everywhere where possible. Bram Matthys 2021-06-26 11:43:32 +0200
  • 68d172854d
    Remove IsARegNick() as we already have IsRegNick() Bram Matthys 2021-06-26 11:19:47 +0200
  • 06c0a34ab1
    Assume all services use account names (SVID), and drop suport for services that only set +r on people. To my knowledge, practically no services are out there anymore that do not use proper SVIDs (and that can link with UnrealIRCd 5). Bram Matthys 2021-06-26 11:13:27 +0200
  • 9f10fa2193
    Improve error message when trying to use SASL with an unconfirmed services account. Bram Matthys 2021-06-26 10:57:36 +0200
  • 317b3df01e
    modules/tkl: Fix wrong tkl names in table (#139) Guillaume Hérail 2021-06-26 09:27:55 +0200
  • f30ce90732
    Update release notes a bit [skip ci] Bram Matthys 2021-06-25 15:52:14 +0200
  • 4dbc1f8771
    Allow remote servers to write to the link-security MD object (#145) Ramiro Bou 2021-06-25 09:50:53 -0300
  • 114d54ac61
    Allow larger IDLEN for incoming, but keep sending current length. I would like a bit more room for this in the future, but until then we will keep sending UIDs of length 9 in server to server traffic, so no change at all. Bram Matthys 2021-06-25 12:15:18 +0200
  • 26a3444f4e
    Validate the UID in cmd_uid(). Reported by Valware in https://bugs.unrealircd.org/view.php?id=5925 Bram Matthys 2021-06-25 11:43:52 +0200
  • e9e2504bf4
    Don't allow remote servers to write to our MD client objects by default. Bram Matthys 2021-06-25 11:16:12 +0200
  • e80c7b5b65
    Add set::anti-flood options lag-penalty and lag-penalty-sec. This also allows known-users to execute slightly more commands per second. Bram Matthys 2021-06-23 16:19:45 +0200
  • 28f98da5f8
    Remove debug message "Checking flood_limit_exceeded()" that was logged. This was a leftover from debugging and should not have been present in 5.2.0. Reported by westor. Bram Matthys 2021-06-23 16:15:58 +0200
  • 3fabc1ef5f
    New security-group::include-mask item so you can put clients into security-groups based on masks too. Bram Matthys 2021-06-23 13:22:17 +0200
  • 7779a4e353
    Show git version hash id in /INFO if you are using git Suggested in https://bugs.unrealircd.org/view.php?id=5920 by KindOne Bram Matthys 2021-06-21 15:08:24 +0200
  • 9fde768201
    New block set::server-linking and change autoconnect strategy to 'sequential' Bram Matthys 2021-06-21 14:52:47 +0200
  • 883a1e02ad
    Initial work on new set::server-linking block: Bram Matthys 2021-06-21 13:08:31 +0200
  • 52297e24b6
    Don't send "local" channel modes to remote servers. They were already ignored in MODE by remote UnrealIRCd servers, but this makes it so local modes (+Z and +d at the moment) are not sent across the wire. Bram Matthys 2021-06-19 17:05:40 +0200
  • fcc7a2cf06
    Channel mode +d is local, so should be tagged as such. Bram Matthys 2021-06-19 17:02:45 +0200
  • dd1f572acb
    The code for -d (so after -D+d) never took QUITs into account. Fun. Bram Matthys 2021-06-19 16:59:54 +0200
  • 06633047a2
    Remove "HCN" from 005. Nobody uses this anyway. Bram Matthys 2021-06-19 14:13:56 +0200
  • a541b8f4ad
    Add support for OpenSSL 3.0.0 (based on -beta1) Now compiles fine without any warnings. Bram Matthys 2021-06-19 13:10:15 +0200
  • e28895c8a9
    Show 'security-groups: known-users' etc in connect notice to opers. Bram Matthys 2021-06-19 12:49:09 +0200
  • 6cc50d16d0
    Fix security group code seeing remote users as always on TLS. Likely not that important until now, but fix needed for next... Bram Matthys 2021-06-19 12:47:52 +0200
  • 991f9f347e
    Allow wildcards in ~a extban, also special code for ~a:0 and ~a:* ~a:0: match all unauthenticated users ~a:*: match all authenticated users ~a:SomeUser: match only SomeUser, also allow wildcards here, even though that is usually a very bad idea :D Bram Matthys 2021-06-19 11:13:30 +0200
  • fb4b21982d
    Start writing early release notes for 5.2.1, in particular the new allow and mask options that should give people food for thought. [skip ci] Bram Matthys 2021-06-19 10:39:07 +0200
  • 905850a825
    Bump version to 5.2.1-git and indicate this is bleeding edge Bram Matthys 2021-06-19 10:21:46 +0200
  • b72ea1d945
    Change allow block to use allow::mask instead of allow::ip / allow::hostname Bram Matthys 2021-06-19 10:15:09 +0200
  • deead90ac3
    Allow extended server ban syntax in ::mask entries. Eg mask ~a:Syzop; Bram Matthys 2021-06-19 09:01:14 +0200
  • f71f6c8fe3
    Another update to positive and negative mask rules, the rules are now: - If you have only negating entries, like '!abc' and '!def', then we assume an implicit * rule first, since that is clearly what the user wants. - If you have a mix, like '*.com', '!irc1*', '!irc2*', then the implicit * is dropped and we assume you only want to match *.com, with the exception of irc1*.com and irc2*.com. - If you only have normal entries without ! then things are as they always are. Bram Matthys 2021-06-19 08:35:20 +0200
  • f7d115e87c
    More fixes and enhancements for deny link::mask ( 5d6738b3e8 ) Bram Matthys 2021-06-19 08:00:04 +0200
  • 360d3f507f
    Move try_connections() from core to server module Bram Matthys 2021-06-18 17:21:08 +0200
  • 497c3059ea
    Fix to support existing deny link::mask syntax as well. Bram Matthys 2021-06-18 16:03:24 +0200
  • 5d6738b3e8
    Allowing multiple masks in "deny link" blocks. (#140) Ramiro Bou 2021-06-18 10:13:50 -0300
  • f0d00ff109
    modules.optional.conf: elaborate a bit more on antimixedutf8 score. And set the default there to 8 instead of 10, which should be OK. Bram Matthys 2021-06-16 13:33:01 +0200
  • 89755ccec6
    ** UnrealIRCd 5.2.0.1 ** Bram Matthys 2021-06-16 08:25:07 +0200
  • fb8c7a5a75
    Fix weird behavior for users in pre-connect stage, eg showing up in WHOIS. Reported by armyn and Valware. Bram Matthys 2021-06-15 20:17:11 +0200
  • 8a655b8bb4
    Fix spamfilter not working with type 'c'. If you had a spamfilter on type 'c' but not on 'p' then it would not trigger. Reported by armyn in https://bugs.unrealircd.org/view.php?id=5913 This probably went unnoticed because most people add spamfilters on 'pc' (or even 'pcnN'). Bram Matthys 2021-06-15 20:01:58 +0200
  • ce807c4e21
    Fix Windows build Bram Matthys 2021-06-14 10:22:46 +0200
  • f7933a8d72
    Set version to 5.2.0 Bram Matthys 2021-06-14 10:18:07 +0200
  • de4c09eae4
    ** UnrealIRCd 5.2.0 ** Bram Matthys 2021-06-14 09:52:26 +0200
  • c60b5f48c2
    Update release notes Bram Matthys 2021-06-14 09:17:33 +0200
  • 210bb2201e
    Update release notes [skip ci] Bram Matthys 2021-06-14 09:08:44 +0200
  • f8934a44c8
    Update release notes [skip ci] Bram Matthys 2021-06-14 08:06:29 +0200
  • 572b349cbd
    set::restrict-commands: new option exempt-tls which allows SSL/TLS users to bypass a restriction. Bram Matthys 2021-06-14 08:00:48 +0200
  • 389a971f96
    Fix rapid autoconnect protection to work with >120 servers (:D) Bram Matthys 2021-06-07 17:05:00 +0200
  • 36097fbdce
    Fix SQUIT being sent back to where it came from. Reported by Ariadne Conill in https://bugs.unrealircd.org/view.php?id=5906 Bram Matthys 2021-06-07 10:18:43 +0200
  • 5237ebaabc
    Fix crash in 5.2.0-rc1: don't call flood_limit_exceeded_log() if a remote server causes the target flood protection limit to be hit for a target user or a channel. Bram Matthys 2021-06-07 07:44:28 +0200
  • a22ac547c2
    Some markup stuff [skip ci] Bram Matthys 2021-06-06 17:37:51 +0200
  • cc490ca924
    When using old set::anti-flood settings it is now a (big) warning instead of an error. Also the warning will differ depending on whether you use the defaults that were in example.conf for a long time, or some custom settings. Bram Matthys 2021-06-06 17:32:46 +0200
  • 3335eb3305
    Fix a doc URL and a (now) confusing syntax example [skip ci] Bram Matthys 2021-06-06 17:07:39 +0200
  • 46550cf180
    Update example conf with new anti-flood block. Replace it with a reference to the documentation instead of trying to include some or all of the defaults since 1) the block is huge nowadays with all the settings, and 2) this way we can tweak the defaults over time in newer versions rather than having people change their configuration file. Bram Matthys 2021-06-06 09:01:31 +0200
  • 3188b7be2d
    Small code cleanup for two efuncs, so the names match. Bram Matthys 2021-06-06 08:33:20 +0200
  • 20c20b3053
    Try to explain to people that symmetric encryption works with keys (:D) Bram Matthys 2021-06-05 19:02:09 +0200
  • 173af8c88c
    ** UnrealIRCd 5.2.0-rc1 ** Bram Matthys 2021-06-04 11:05:02 +0200