mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2009
Posts: 12
C
Corey_ Offline OP
Pikka bird
OP Offline
Pikka bird
C
Joined: Oct 2009
Posts: 12
The upgrade from mIRC 7.36 to 7.38 appears to have changed something in the sockopen command - a script I wrote to pull API data from my ISP works fine on 7.36 but can't successfully start an https connection on 7.38.

The "tekcheck" alias in the code below should run without feedback and does on 7.36, but on 7.38 you'll see a [10101] Host disconnected error. Could anyone figure out what changed?

Thanks!

Code:
alias tekCheck {
  sockopen -e tekapi api.teksavvy.com 443
}

on 1:sockopen:tekapi: {
  if ($sockerr > 0) echo -t Socket Error on open: $sockerr message: $sock($sockname).wsmsg
  sockclose $sockname
}

Last edited by Corey_; 12/01/15 09:10 PM.
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Accpepted ciphers were changed in 7.37 to the following:
Quote:
ALL:!ADH:!aNULL:!eNULL:!EXP:!3DES:!RC4:!MD5:!PSK:!SRP:!DSS:!SSLv2:!LOW

Since RC4 is the only cipher available on that server the connection fails, you can remove the RC4 exclusion from the string to connect to this host. Add the following line to the [ssl] section of mirc.ini:
Quote:
ciphers=ALL:!ADH:!aNULL:!eNULL:!EXP:!3DES:!MD5:!PSK:!SRP:!DSS:!SSLv2:!LOW

I'd blame the server more than mIRC for offering such weak security, but this situation could be presented to the user more clearly.

Joined: Oct 2009
Posts: 12
C
Corey_ Offline OP
Pikka bird
OP Offline
Pikka bird
C
Joined: Oct 2009
Posts: 12
That was it! Thank you smile


Link Copied to Clipboard