File tree 1 file changed +5
-1
lines changed 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,10 @@ func (c *Client) makeUpstreamConnection() (io.ReadWriteCloser, error) {
404
404
405
405
func (c * Client ) writeWebircLines (upstream io.ReadWriteCloser ) {
406
406
// Send any WEBIRC lines
407
+ if len (c .UpstreamConfig .WebircCertificate ) > 0 && c .UpstreamConfig .WebircPassword == "" {
408
+ c .UpstreamConfig .WebircPassword = "*"
409
+ }
410
+
407
411
if c .UpstreamConfig .WebircPassword == "" {
408
412
c .Log (1 , "No webirc to send" )
409
413
return
@@ -700,7 +704,7 @@ func (c *Client) configureUpstream() ConfigUpstream {
700
704
upstreamConfig .Throttle = c .Gateway .Config .GatewayThrottle
701
705
upstreamConfig .WebircPassword = c .Gateway .findWebircPassword (c .DestHost )
702
706
703
- if upstreamConfig . WebircPassword != "" && c .Gateway .Config .WebircCert != nil {
707
+ if c .Gateway .Config .WebircCert != nil {
704
708
upstreamConfig .WebircCertificate = []tls.Certificate {
705
709
* c .Gateway .Config .WebircCert ,
706
710
}
You can’t perform that action at this time.
0 commit comments