15939 Commits

Author SHA1 Message Date
Sadie Powell
f6bd143ff0 Update module descriptions. 2022-12-30 11:27:46 +00:00
Sadie Powell
5894b4eb80 Update vendored dependencies. 2022-12-30 11:25:25 +00:00
Sadie Powell
f547805018 Rename the SimpleExtItem type parameter to be more descriptive. 2022-12-27 19:29:43 +00:00
Sadie Powell
a752f952af Allow overriding the deleter in ListExtItem. 2022-12-27 19:29:43 +00:00
Sadie Powell
72b5aec5d5 Add the SimpleExtItem::GetRef method. 2022-12-27 19:29:43 +00:00
Sadie Powell
75de6e0d5c Add the ListExtItem extension type. 2022-12-27 18:19:10 +00:00
Sadie Powell
baccb43263 Merge branch 'insp3' into master. 2022-12-27 15:27:34 +00:00
Sadie Powell
9b5c86c0b6 Ignore edits to the copyright headers when updating them.
This fixes a committer who has run mkheaders from being added to
the copyright headers when it is next run.
2022-12-27 15:01:13 +00:00
Sadie Powell
549105eb53 Use delete_zero in place that it makes sense to. 2022-12-27 14:12:25 +00:00
Sadie Powell
1c2e79ea80 Move cull_delete to be inside of Cullable. 2022-12-27 14:12:10 +00:00
Sadie Powell
ed81ec45ad Move some stuff from the Windows compat header to where it is used. 2022-12-27 13:50:13 +00:00
Sadie Powell
193408e3b4 Replace the unused padding argument of Percent::Encode with upper. 2022-12-27 13:37:38 +00:00
Sadie Powell
beb9c2475c Fix a C++11-ism in the dnsbl module. 2022-12-26 20:04:17 +00:00
Sadie Powell
946cb66aac Fix overwriting marks from earlier DNSBLs. 2022-12-26 19:59:53 +00:00
Sadie Powell
7021dc0a12 Include the WebSocket fail reason in the body of the HTTP response. 2022-12-25 23:10:19 +00:00
Sadie Powell
05168e3549 Merge branch 'insp3' into master. 2022-12-25 22:44:50 +00:00
Sadie Powell
b1eb362d83 Refactor SocketEngine slightly.
- Remove pointless shutdown() wrapper.
- Remove pointless bounds checking function.
- Make Bind and Listen take an EventHandler instead of a fd.
- Add nullability attributes to every method.
2022-12-25 22:41:28 +00:00
Sadie Powell
cdbdfc7176 Refactor ListenSocket::OnEventHandlerRead slightly. 2022-12-25 20:37:43 +00:00
Sadie Powell
7673db8d1b Pass the client/server sockaddr around as a ref instead of a ptr. 2022-12-25 13:06:50 +00:00
Sadie Powell
12518ce966 Add nullability attributes to UserManager. 2022-12-25 12:48:26 +00:00
Sadie Powell
81d8fde748 Default <bind:replace> for UNIX socket listeners to on. 2022-12-25 12:25:50 +00:00
Sadie Powell
dea1450a70 Update the Windows dependencies.
[skip alpine ci]
[skip macos ci]
[skip ubuntu ci]
2022-12-23 20:42:11 +00:00
Sadie Powell
14ab989acf Remove the string_view utility header from the global header. 2022-12-23 19:10:30 +00:00
Sadie Powell
957cb76eba Lower the threshold for server clock offsets to 15s/5s. 2022-12-20 18:48:03 +00:00
Sadie Powell
997684e183 Fix a Doxygen documentation typo. 2022-12-20 17:17:47 +00:00
Sadie Powell
8025a69a53 Allow remapping mode and extban characters at load time.
Closes #1970.
2022-12-20 16:02:12 +00:00
Sadie Powell
2b33c3c303 Don't automatically fall back to ToNetwork from ToInternal.
Only one thing used this and its really unclear especially when
SimpleExtItem does the opposite.
2022-12-20 10:51:57 +00:00
Sadie Powell
abc1e463a7 Move {From,To}Network from StringExtItem to SimpleExtItem. 2022-12-20 10:50:31 +00:00
Sadie Powell
43d48a2e98 Move extension types to their own header to speed up build times. 2022-12-19 14:18:30 +00:00
Sadie Powell
dcd6fa89bc Fix parsing extbans in banredirect and timedbans. 2022-12-19 11:29:55 +00:00
Sadie Powell
4dff02f7ed Consistently limit the range for config port fields. 2022-12-19 09:48:16 +00:00
Sadie Powell
be6555384d Add an oper priv for exempting opers from blockamsg.
Closes #2007.
2022-12-19 09:25:18 +00:00
Sadie Powell
2f77eb6e9c Add the Cohost account to the readme. 2022-12-18 20:48:33 +00:00
Sadie Powell
2ddb623198 Use in_port_t instead of int/unsigned int/long. 2022-12-18 18:47:28 +00:00
Sadie Powell
1ac8bbe178 Fix an incompatibility between MySQL and MariaDB. 2022-12-18 18:44:42 +00:00
Sadie Powell
3af79a556e Add SSL support to the mysql module. 2022-12-18 18:21:28 +00:00
Sadie Powell
3588a46e6f We actually want ADDRESS_FAMILY not SOCKET_ADDRESS for sa_family_t.
Apparently I can not read headers properly.
2022-12-18 13:44:45 +00:00
Sadie Powell
d8b4414ee1 Rework the levels things are logged at to make more sense. 2022-12-18 13:43:33 +00:00
Sadie Powell
ef1c19fa06 Update /MOTD to match /OPERMOTD. 2022-12-18 11:39:17 +00:00
Sadie Powell
cf3466963b Add is_local to the sockaddrs union. 2022-12-18 01:13:47 +00:00
Sadie Powell
55c1974da3 Use SOCKET_ADDRESS instead of u_short.
These are typedefs but the former is more correct.
2022-12-18 00:50:40 +00:00
Sadie Powell
3ac6d92316 Fix warning about UNIX socket connections being insecure. 2022-12-17 11:28:44 +00:00
Sadie Powell
33c08fc8aa Deduplicate retrieving error messages on Windows. 2022-12-13 14:17:50 +00:00
Sadie Powell
86058dc504 Show the system error message when loading modules fails. 2022-12-13 10:45:33 +00:00
Sadie Powell
28c59ba77b Update module descriptions. 2022-12-12 11:03:28 +00:00
Sadie Powell
e7c635dd02 Fix the docs of markident and markhost being reversed in m_dnsbl. 2022-12-12 08:25:39 +00:00
Sadie Powell
c765da2f51 Fix compatibility with the v3 deaf config. 2022-12-12 00:30:35 +00:00
Sadie Powell
bfee808f26 Fix conflicting with a predefined value on Windows.
STRICT is already defined on Windows so we'll need to do something
else here. Thanks Microsoft.
2022-12-11 10:31:00 +00:00
Sadie Powell
3c6e24665f Move <oper:autologin> from m_sslinfo to core_oper and rework.
- Promote autologin to a core concept with visibility in events.

- Replace the binary yes/no value with strict/relaxed/never. This
  intentionally breaks v3 oper block autologin as admins will need
  to review them for the security implications of the new behaviour.
2022-12-11 10:14:33 +00:00
Sadie Powell
cd6329d4b0 Improve the oper login flow and error messages. 2022-12-11 08:49:44 +00:00