Find a file
Simon Ser 7c31c26d86
Don't perform TLS handshake in connectToUpstream
This defers TLS handshake until the first read or write operation. This
allows the upcoming identd server to register the connection before the
TLS handshake is complete, and is necessary because some IRC servers
send an ident request before that.
2020-08-11 10:24:54 +02:00
cmd cmd/sojuctl: read user from DB before updating it 2020-08-11 10:21:49 +02:00
config config: make http-origin directive overwrite previous list 2020-07-22 18:07:55 +02:00
contrib contrib/znc-import: new utility 2020-07-09 11:25:25 +02:00
doc doc: fix typo in man page 2020-07-23 23:31:37 +02:00
.build.yml ci: check scdoc is happy 2020-06-10 16:15:20 +02:00
.gitignore doc: document "network delete" 2020-04-01 17:38:09 +02:00
bridge.go Make length check clearer in sendNames 2020-07-06 10:59:34 +02:00
conn.go Add RemoteAddr to ircConn interface 2020-07-01 17:02:37 +02:00
db.go Add DB.DeleteUser 2020-08-03 18:43:39 +02:00
downstream.go go fmt 2020-07-22 12:16:01 +02:00
go.mod Add support for WebSocket connections 2020-06-07 14:13:46 +02:00
go.sum Add support for WebSocket connections 2020-06-07 14:13:46 +02:00
irc.go Sort and split JOIN messages 2020-07-06 11:06:20 +02:00
LICENSE Switch license to AGPLv3 2020-02-07 17:41:51 +01:00
logger.go go fmt 2020-07-22 12:16:01 +02:00
Makefile Move man page to doc/ 2020-03-27 19:23:41 +01:00
README.md readme: update mailing list link 2020-07-24 09:49:54 +02:00
ring.go Remove Ring.consumers 2020-04-07 14:46:31 +02:00
server.go Remove user from Server map when stopped 2020-08-10 15:03:38 +02:00
service.go Add user delete command 2020-08-10 15:04:01 +02:00
upstream.go Don't perform TLS handshake in connectToUpstream 2020-08-11 10:24:54 +02:00
user.go Make user.stop block 2020-08-10 15:03:38 +02:00

soju

builds.sr.ht status

A user-friendly IRC bouncer.

  • Multi-user
  • Support multiple clients for a single user, with proper backlog synchronization
  • Support connecting to multiple upstream servers via a single IRC connection to the bouncer

Usage

See the man page at doc/soju.1.scd for more information.

Server side

To create an admin user and start soju, run these commands:

go run ./cmd/sojuctl create-user <soju username> -admin
go run ./cmd/soju -listen irc+insecure://127.0.0.1:6667

If you're migrating from ZNC, a tool is available to import users, networks and channels from a ZNC config file:

go run ./contrib/znc-import.go <znc config file>

Client side

soju can operate in two different modes: multi upstream and single upstream.

Single upstream mode

In this mode, 1 upstream connection to a irc server = 1 connection to your soju bouncer.

The easiest and fastest way to use this is to specify the address of the server in your username in your client configuration. For example to connect to Freenode, your username will be: <soju username>/chat.freenode.net. Also set your soju password in the password field of your client configuration.

This will autoconfigure soju by adding a network with the address chat.freenode.net and then autoconnect to it. You will now be able to join any channel like you would normally do.

Multi upstream mode

In this mode, a single connection to your soju bouncer can handle multiple upstream connections. You will need to manually configure each upstream connection using the the special BouncerServ user.

Connect to your soju server by specifying your soju username in the username field in your client and your password in the password field.

You should now be able to send private messages to the BouncerServ. You can send it commands to configure soju. Create new networks:

/msg BouncerServ network create -addr chat.freenode.net -name freenode
/msg BouncerServ network create -addr irc.rizon.net -name rizon

You will now be able to join channels on these networks by specifying their name:

/join #soju/freenode
/join #somechannel/rizon

Notes

soju will automatically save and restore the channels you were connected to.

Contributing

Send patches on the mailing list or on GitHub, report bugs on the issue tracker. Discuss in #soju on Freenode.

License

AGPLv3, see LICENSE.

Copyright (C) 2020 The soju Contributors