Shivaram Lingamneni
23a66fa502
fix various data races, including 2 introduced by #139
6 years ago
Shivaram Lingamneni
e66735619e
tweak some defaults
* Lower ident timeout to 1.5 seconds, as discussed in #oragono
* Enforce connection limits at the granularity of ipv4 /32's and ipv6 /64's
* Raise the limit on number of new connections to 64 every 10 minutes
(for the benefit of people behind large IPv4 NATs)
6 years ago
Daniel Oaks
58fb997e77
changelog: Update with new items
6 years ago
Daniel Oaks
b8d47c3e4f
channel: Server opers shouldn't override nooutside, reggedonly and moderated modes. if they want to do that sort of thing, they have SAMODE and all to be explicit about it
6 years ago
Daniel Oaks
e3a0387cf5
channel: Fix +m (moderated) and +R (registeredonly) channel modes, add note about opers overriding +m/+R
6 years ago
Daniel Oaks
b850a6c1d9
caps: Actually remove MessageIDs (accidentally left it here with the merge)
6 years ago
Daniel Oaks
b4fcb45af0
Add license stuff to the top of caps/ and sno/ files I guess
6 years ago
Daniel Oaks
275449e6cc
caps: Move most capability-handling types into the caps package
6 years ago
Daniel Oaks
85bfe3818b
Merge pull request #141 from slingamn/dline_safety.2
refactor [dk]linemanagers
6 years ago
Shivaram Lingamneni
ae441d22d3
refactor [dk]linemanagers
* Synchronize map accesses
* Be more aggressive about cleaning up expired lines
* CIDR dlines did not work (nil dereference)
6 years ago
Daniel Oaks
cea6565b80
client: HasCapabs -> HasRoleCapabs to make it more clear exactly what this means
6 years ago
Daniel Oaks
810908db7f
Add comments
6 years ago
Daniel Oaks
9bfdc4fdfb
Move caps to their own package to prevent conflicts
6 years ago
Daniel Oaks
830484feb6
AWAY: Send correct mode string (thanks for pointing out this silly bug @jwheare!)
6 years ago
Daniel Oaks
c39206ad13
Don't create new caps out of nowhere, dummy
6 years ago
Daniel Oaks
ffe7375a68
Fix proxied DLINE/throttle/etc error messages
6 years ago
Shivaram Lingamneni
a9e4ed237e
deduplicate d-line and throttle code
6 years ago
Daniel Oaks
8b1f722655
server: Fix the PROXY command
6 years ago
Daniel Oaks
3f4bf38bee
Merge branch 'rehash_refactor.4' of https://github.com/slingamn/oragono
6 years ago
Daniel Oaks
8ea5632269
Setup v0.9.2-unreleased devel ver
6 years ago
Shivaram Lingamneni
b7b24c34b4
rehash cannot modify the server name
6 years ago
Shivaram Lingamneni
3b0f1ff1cc
delete websocket support as per discussion on #139
6 years ago
Shivaram Lingamneni
e8b1870067
refactor the rehash implementation
6 years ago
Daniel Oaks
eae04e8c51
Release v0.9.1
6 years ago
Daniel Oaks
cd8b4877b6
accounts: Check for account logins correctly, fixes registration. Also fix a typo, thanks squigz!
6 years ago
Daniel Oaks
90435256fd
Merge pull request #138 from slingamn/quit_messages
send the actual quit message to friends
6 years ago
Shivaram Lingamneni
1612c141d5
send the actual quit message to friends
6 years ago
Daniel Oaks
a78a8f1130
client: Only add friends if they actually have the caps we request. Friends() is entirely broken because of this
6 years ago
Daniel Oaks
79de443496
channel: Don't send TOPIC on entirely new channel
6 years ago
Daniel Oaks
2759d8f5d3
modes: Allow 'MODE b' (used by irssi for channel sync) (thanks @dx!)
6 years ago
Daniel Oaks
3b0d9c4db9
Send nick parameter correctly on ERR_NOSUCHNICK numerics
6 years ago
Daniel Oaks
1ccdd67a45
Setup v0.9.1-unreleased devel ver
6 years ago
Daniel Oaks
02cd620bd4
Release v0.9.0
6 years ago
Daniel Oaks
e95c75f87d
monitor: Fix a crash around the MONITOR command
6 years ago
Daniel Oaks
7ff33b88dd
Update info doc and changelog
6 years ago
Daniel Oaks
ee73d136fc
vendor: Updated submodules
6 years ago
Daniel Oaks
acec0e1690
PROXY: Check DLINEs and connection limits/throttle on new proxied connections
6 years ago
Daniel Oaks
38498b752b
PROXY: Make sure given IPs are valid and pass them through appropriately
6 years ago
Daniel Oaks
7d140c9e43
PROXY: Update some comments, disallow from registered clients
6 years ago
Shivaram Lingamneni
99f02ede20
restore PROXY protocol support
support for PROXY was removed in 43e28e2fef . After discussion,
it's worth keeping around in case of client compatibility issues,
and until /rehash support is more mature.
6 years ago
Daniel Oaks
8cd016e4c0
server: Fix comments
6 years ago
Daniel Oaks
989fea18f9
Merge pull request #135 from slingamn/listeners_refactor_again.7
refactor create/update/destroy of listeners
6 years ago
Shivaram Lingamneni
0f0f2d1314
refactor listener update/destroy code
Don't close and reopen listeners
6 years ago
Shivaram Lingamneni
d5528f6e56
execute rehash() in its own goroutine
This prevents a deadlock:
1. rehash() is executing on the main goroutine
2. it's trying to stop a listener goroutine
3. the listener goroutine needs to hand off a new connection to newConns
4. but the main goroutine is blocked by rehash() so it can't receive it
6 years ago
Shivaram Lingamneni
b1376d5f71
Fix a concurrency error with Server.listeners
See #134 ; there was a `fatal error: concurrent map read and map write`
due to unsynchronized accesses to `Server.listeners`. Now, `listeners`
is only accessed by `NewServer` and `rehash`, so it doesn't need
synchronization.
6 years ago
Daniel Oaks
c48d869f4d
Allow multiple account registrations for testing
6 years ago
Daniel Oaks
8e32098f1f
Quiet mkcerts messages
6 years ago
Daniel Oaks
97010461f7
Merge pull request #133 from slingamn/default_modes.2
implement #132 (configurable default channel modes)
6 years ago
Shivaram Lingamneni
6063d30bc5
add a test for default channel mode parsing
6 years ago
Shivaram Lingamneni
333afe1062
make default channel modes configurable
6 years ago