- Timestamp:
- Apr 28, 2020, 9:41:13 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/soju.1.scd
r269 r270 98 98 _addr_ supports several connection types: 99 99 - _[ircs://]host[:port]_ connects with TLS over TCP 100 - _irc+insecure://host[:port]_ connects with plain-text TCP 100 101 101 102 Other options are: -
trunk/service.go
r269 r270 207 207 scheme := addrParts[0] 208 208 switch scheme { 209 case "ircs" :209 case "ircs", "irc+insecure": 210 210 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) 212 212 } 213 213 } -
trunk/upstream.go
r269 r270 91 91 logger.Printf("connecting to TLS server at address %q", addr) 92 92 netConn, err = tls.DialWithDialer(&dialer, "tcp", addr, nil) 93 case "irc+insecure": 94 if !strings.ContainsRune(addr, ':') { 95 addr = addr + ":6667" 96 } 97 98 logger.Printf("connecting to plain-text server at address %q", addr) 99 netConn, err = dialer.Dial("tcp", addr) 93 100 default: 94 101 return nil, fmt.Errorf("failed to dial %q: unknown scheme: %v", addr, scheme)
Note:
See TracChangeset
for help on using the changeset viewer.