Changeset 270 in code for trunk/service.go


Ignore:
Timestamp:
Apr 28, 2020, 9:41:13 AM (5 years ago)
Author:
delthas
Message:

Add support for the irc+insecure address scheme

Some servers do not support TLS, or have invalid, expired or self-signed
TLS certificates. While the right fix would be toi contact each server
owner to add support for valid TLS, supporting plaintext upstream
connections is sometimes necessary.

This adds support for the irc+insecure address scheme, which connects to
a network in plain-text over TCP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/service.go

    r269 r270  
    207207                scheme := addrParts[0]
    208208                switch scheme {
    209                 case "ircs":
     209                case "ircs", "irc+insecure":
    210210                default:
    211                         return fmt.Errorf("unknown scheme %q (supported schemes: ircs)", scheme)
     211                        return fmt.Errorf("unknown scheme %q (supported schemes: ircs, irc+insecure)", scheme)
    212212                }
    213213        }
Note: See TracChangeset for help on using the changeset viewer.