Skip to content

soju.py: Doesn't work with non-SSL connection to a Soju server #579

@kartikynwa

Description

@kartikynwa

Script / WeeChat

  • Name of script: soju.py
  • Script version: 0.5.0
  • WeeChat version: 4.7.1

This bug has been reported to the script author? Yes
Response or reason: The author acknowledged the bug.

Bug summary

The script helps in making using Soju, an IRC bouncer, a better experience. Once you connect to one active network in the bouncer, the script sets up the remaining networks as well by creating ephemeral WeeChat servers.

However, the script fails when connecting to Soju over a non-SSL connection. The script is hardcoded to force -tls in lines 106-9 so the created server fails since they try to enforce -tls when making an insecure connection.

Steps to reproduce

1.  Set up a Soju server
2.  Install script, configure weechat to connect to this server over an insecure connection
3. Start weechat and connect to this Soju server

Current behavior

Causes TLS related errors. The text said something like unexpected TLS packet.

Expected behavior

No errors.

Suggested solutions

For my personal use I have commented out the aforementioned lines in the local copy of my script. This has solved the problem for me. A more holistic solution would be to check the parent server configuration is using SSL and copy that behaviour. But I haven't been able to understand the scripting API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions