Commit Graph

39 Commits

Author SHA1 Message Date
hybris b7a5c66929 Merge remote-tracking branch 'github/master' 2021-12-29 16:19:22 +01:00
Sergey Matveev eaf030e5c8 Raise copyright years 2021-01-05 20:48:29 +03:00
Sergey Matveev 761dda2575 Properly stop room's processor 2020-12-04 13:29:22 +03:00
Sergey Matveev b7fb219307 Many fixes and additions
* NAMES and WALLOPS command
* -cloak option
* -v renamed to -verbose
* -passwords renamed to -passwd
* -debug option prints traffic messages
* without -verbose only startup/shutdown and error messages are printed
* -timestamped option provides timestamps in printed messages, as
  earlier. No timestamps is useful for running under daemontools
* passwords are stored in SHA256-hashed format
* state files replaced with state directory with files
* removed many unnecessary pointers and locks
* graceful shutdown with all clients notification
* fixed time structure printing in log files, instead of short human
  readable timestamp
* PART is sent to the user itself, to notify his client about leaving
* log messages are printed to stdout, instead of stderr, for
  friendliness with daemontools logger
* ability to configure newly created directories and files with
  -perm-state-dir, -perm-state-file, -perm-log-file
2020-11-07 16:52:53 +03:00
Sergey Matveev def58d0f49 Replace Makefile with redo, keep version in source code 2020-09-05 11:30:25 +03:00
Sergey Matveev 236377e360 Raise copyright years 2020-01-07 18:27:02 +03:00
Sergey Matveev 7a08129379 Raise copyright years 2019-09-27 11:35:02 +03:00
Sergey Matveev 964a1bf9db Forbid any later GNU GPL versions autousage 2019-09-27 11:32:53 +03:00
Mathias Kaufmann cf6cce277f
Use provided argument or fall-back for health-bind.
The following arguments may used to specifiy health-check behavior:
* `-healthcheck` : Enable healthcheck (default: `false`)
* `-healthbind=[::1]:8086` : Override Healthcheck bind-address (default: `[::]:8086`

Or use Environmentvariables `HEALTHCHECK` and `HEALTHBIND`
2018-04-22 10:47:38 +02:00
Mathias Kaufmann c7c83926e1
Added argument (and env-var) to specify health-bind-address. 2018-04-22 10:45:02 +02:00
Mathias Kaufmann 58c7c41905
Remove unused constant 2018-04-22 10:44:21 +02:00
Sergey Matveev 57d3777421 Raise copyright years 2018-03-25 17:57:05 +03:00
Björn Busse 580b5a31dd
Merge pull request #8 from steigr/feature/tls-key-file
Allow to specify tlsKEY as seperate file.
2018-03-14 03:34:46 +01:00
Mathias Kaufmann 6e35f78338 Allow to specify tlsKEY as seperate file.
Signed-off-by: Mathias Kaufmann <me@stei.gr>
2018-03-14 02:06:18 +01:00
Mathias Kaufmann 154aaa5243 Added healthchecking via HTTP
Signed-off-by: Mathias Kaufmann <me@stei.gr>
2018-03-14 01:05:57 +01:00
Mathias Kaufmann 06d17fe26b use github.com/namsral/flag for flags
github.com/namsral/flag enables environment and config file parsing

Signed-off-by: Mathias Kaufmann <me@stei.gr>
2018-03-13 23:36:53 +01:00
Björn Busse dec20c2cd0 Add a tlsonly option 2018-03-08 17:37:26 +00:00
Björn Busse 9a4e42ba8b Add a prometheus exporter and some metrics 2018-03-08 02:40:26 +00:00
Björn Busse a3ce9988ff
Merge pull request #2 from steigr/feature/proxy-protocol
Feature/proxy protocol
2018-03-06 23:50:57 +01:00
Mathias Kaufmann b0536016a1 Fix handling of TLS-Connections
Signed-off-by: Mathias Kaufmann <me@stei.gr>
2018-03-06 22:53:04 +01:00
Sergey Matveev 5ca748d928 Raise copyright years 2018-03-04 22:01:18 +00:00
steigr b4e0bbf0a4 Wrap up net.Conn with go-proxyproto.Conn
Wrap up connection into proxy-protocol handler.
See examples/proxy-protocol/haproxy* to test it

Signed-off-by: steigr <me@stei.gr>
2018-02-20 19:48:13 +01:00
Sergey Matveev ec62152429 Raise copyright years 2017-01-02 11:00:42 +03:00
Sergey Matveev 491e6602aa Raise copyright years 2015-12-31 20:23:21 +03:00
Sergey Matveev e657ffd2ab Code refactoring
* Less memory allocations
* Daemon instance replaced with global variables
* Code simplification
* Asynchronously send messages to clients
2015-10-11 14:51:07 +03:00
Sergey Matveev 62b4ca67a0 Unnecessary return because of Fatalln 2015-10-06 10:58:43 +03:00
Sergey Matveev b678682010 Raise copyright year. Trivial changes 2015-05-09 18:27:06 +03:00
Sergey Matveev 990937d451 Remove signal processor for password reloading and use pointers to strings
Simplify code and server maintaining by removing password file caching
and refreshing it with HUP signal. Also use pointers to strings, already
presented after flag-module work.
2014-08-19 18:11:56 +04:00
Sergey Matveev 85e6538f2f Combine TLS cert and key options in single one 2014-08-14 23:08:41 +04:00
Sergey Matveev b35f6e7b3c Ability to listen on raw and TLS sockets simultaneously 2014-08-14 18:46:21 +04:00
Sergey Matveev f46c678ce0 Ability to show server's version 2014-08-14 17:31:49 +04:00
Sergey Matveev a939b027fd Ability to authenticate users by nickname↔password database 2014-08-14 17:31:49 +04:00
Sergey Matveev cfeaaad88f Golinting 2014-08-09 16:42:19 +04:00
Sergey Matveev 1a2241388b SSL name is deprecated, use TLS instead 2014-06-10 11:26:13 +04:00
Thomas Habets 41f9649494 Cleaned up file handling. 2014-06-08 03:16:33 +02:00
Thomas Habets c1d256aaa0 Decrease log verbosity. 2014-06-08 02:49:27 +02:00
Thomas Habets de49f5eeba Make channels unidirectional. 2014-06-08 02:21:06 +02:00
Thomas Habets 1f4a463c0a Add SSL support. 2014-06-08 02:08:13 +02:00
Sergey Matveev b2f90fb412 Initial commit 2014-05-11 20:18:55 +04:00