tiny icon indicating copy to clipboard operation
tiny copied to clipboard

Cannot connect to some servers that IRSSI can.

Open gabevenberg opened this issue 1 year ago • 4 comments

Im trying to connect to the IRC server at mbrserver.com:6667, which works with IRSSI, but not with tiny. With tiny, I receive an error saying I received a corrupt message. Ill see if I can do some debugging in wireshark later this week...

gabevenberg avatar Nov 13 '24 09:11 gabevenberg

IIRC we log all incoming messages if you enable logging with TINY_LOG=trace tiny. You may be able to see the message that's causing issues in the log file there. The log file will be in your logs directory (if you specify that in your tiny config) or in the current working directory, with name tiny_debug_logs.txt.

osa1 avatar Nov 13 '24 09:11 osa1

tiny_debug_logs.txt Here you go. Did some experimentation and it only appears to happen when tls is turned on.

gabevenberg avatar Nov 13 '24 12:11 gabevenberg

Port 6667 should be for non-TLS connections, for TLS the port should be 6697.

Which port are you using in irssi and are you enabling TLS? I suspect irssi automatically enables/disables TLS based on the port you use. I just quickly tried this, it looks like this server does not support TLS, so you should use these settings:

    - addr: mbrserver.com
      port: 6667
      tls: false

If you want TLS you should use this:

    - addr: mbrserver.com
      port: 6697
      tls: true

But it looks like this server doesn't support TLS, so use the first one.

osa1 avatar Nov 13 '24 13:11 osa1

I remember other users getting confused about this before, we should probably generate a warning when the TLS mode and port don't match, or allow leaving the port part empty and use the default ones based on the TLS mode.

osa1 avatar Nov 13 '24 20:11 osa1