File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 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) {
404404
405405func (c * Client ) writeWebircLines (upstream io.ReadWriteCloser ) {
406406 // Send any WEBIRC lines
407+ if len (c .UpstreamConfig .WebircCertificate ) > 0 && c .UpstreamConfig .WebircPassword == "" {
408+ c .UpstreamConfig .WebircPassword = "*"
409+ }
410+
407411 if c .UpstreamConfig .WebircPassword == "" {
408412 c .Log (1 , "No webirc to send" )
409413 return
@@ -700,7 +704,7 @@ func (c *Client) configureUpstream() ConfigUpstream {
700704 upstreamConfig .Throttle = c .Gateway .Config .GatewayThrottle
701705 upstreamConfig .WebircPassword = c .Gateway .findWebircPassword (c .DestHost )
702706
703- if upstreamConfig . WebircPassword != "" && c .Gateway .Config .WebircCert != nil {
707+ if c .Gateway .Config .WebircCert != nil {
704708 upstreamConfig .WebircCertificate = []tls.Certificate {
705709 * c .Gateway .Config .WebircCert ,
706710 }
You can’t perform that action at this time.
0 commit comments