1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-14 22:38:05 +11:00
Commit Graph

16 Commits

Author SHA1 Message Date
Izaya
f8903ad587
Merge pull request #36 from Hawk777/fix-listeners-deregistering
Do not unregister listeners on unexpected data
2023-07-27 10:08:33 +10:00
Izaya
98fbf0e7d5
Merge pull request #35 from Hawk777/fix-syslog-without-hostname
Fix syslog running with HOSTNAME unset
2023-07-27 10:07:04 +10:00
Christopher Head
a78a3758f8
Fix registering the wrong listener
The `local_listener` function is obviously intended to be used as the
event listener for locally pushed `syslog` events, to do preliminary
sanity checks and type conversions before calling `wentry`. However, it
was not actually registered as such. Not only does this mean the sanity
checks and type conversions could be skipped, it also means that `rc
syslogd stop` would not work because `wentry` was actually registered as
a listener while `local_listener` was pushed in the `listeners` table,
so `event.ignore` would be passed the wrong value and would not
unregister `wentry`.
2021-01-22 19:26:04 -08:00
Christopher Head
074a980d81
Do not unregister listeners on unexpected data
If a registered event listener callback returns `false`, the listener is
unregistered. A network packet arriving on a different port, or a
message with a missing part, should not cause the syslog system to shut
down. Return `nil` instead of `false` if those sanity checks fail, to
keep the listener registered.
2021-01-22 19:21:23 -08:00
Christopher Head
4f0efd256c
Fix syslog running with HOSTNAME unset
`computer.address` is a function and therefore must be called, not
method-called on directly.
2021-01-22 19:11:26 -08:00
c6c471cfcf added the local listener. whoops. 2020-05-05 01:27:07 +10:00
86055b6228 syslogd now uses minitel.lua instead of net.lua 2018-08-11 14:25:42 +10:00
9c2c74b7fd added man pages for syslog, for #9 2018-08-10 19:12:34 +10:00
fb9aaa858c syntax highlighting is nicew 2018-08-08 09:15:55 +10:00
bf5c56c231 cleanup and such 2018-08-08 09:15:03 +10:00
ef6e7076b8 added a readme to the OpenOS version of syslog 2018-08-08 08:58:29 +10:00
43c6f5279d added an option to display log messages over a certain priority 2018-07-28 17:22:22 +10:00
b212d13010 added a beeplevel option, any events equal to or above that level will make the server beep. 2018-07-28 05:34:31 +10:00
6d0ea31c27 protocol documentation for syslog 2018-07-25 21:28:25 +10:00
4aba85513a fixed up network syslog stuff 2018-07-25 04:41:00 +10:00
284c67994e initial work on #9 2018-07-24 22:15:12 +10:00