Closed progval closed 7 years ago
Hi,
I ran npm update a few days ago, and my bot has been unable to connect to IRC since.
npm update
Running the bot with strace shows that the bot actually tries to connect over port 443 and uses TLS:
connect(12, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("40.77.226.194")}, 16) = -1 EINPROGRESS (Operation now in progress) epoll_ctl(5, EPOLL_CTL_ADD, 12, {EPOLLOUT, {u32=12, u64=12}}) = 0 epoll_wait(5, [{EPOLLOUT, {u32=12, u64=12}}], 1024, 1709) = 1 clock_gettime(CLOCK_MONOTONIC, {tv_sec=13858326, tv_nsec=782628387}) = 0 getsockopt(12, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 write(12, "\26\3\1\1D\1\0\1@\3\3Z.\254P\270\321\377@r\321\205&\345\5\365\262S>'\213k"..., 329) = 329 epoll_ctl(5, EPOLL_CTL_ADD, 12, {EPOLLIN, {u32=12, u64=12}}) = -1 EEXIST (File exists) epoll_ctl(5, EPOLL_CTL_MOD, 12, {EPOLLIN, {u32=12, u64=12}}) = 0 epoll_wait(5, [], 1024, 0) = 0 epoll_wait(5, [{EPOLLIN, {u32=12, u64=12}}], 1024, 1671) = 1 read(12, "\26\3\3\16_\2\0\0M\3\3YN\35\213\267<e)\323\334v{\v\366,\n\316\337\36\302\375"..., 4096) = 3684 write(12, "\26\3\3\0F\20\0\0BA\4\36jH\377\0307\v<g\223C\367\237\303\v\t.I\300p\204"..., 182) = 182
Here is my code:
irc_client = new irc.Client(config.irc_hostname, config.irc_nick, { channels: [config.irc_channel], port: config.irc_port, secure: config.irc_tls, });
and my config:
{ irc_hostname: 'irc.ec-paris.rezosup.org', irc_port: 6667, irc_tls: false, irc_nick: 'skyporaptor', irc_channel: '#ppp'}
Versions:
$ nodejs --version v4.8.2 $ npm --version 1.4.21 $ npm list ├── html-entities@1.2.1 ├─┬ irc@0.5.2 │ ├─┬ iconv@2.2.3 │ │ └── nan@2.6.2 │ ├── irc-colors@1.3.3 │ └─┬ node-icu-charset-detector@0.2.0 │ └── nan@2.6.2 ...
Nevermind. My mistake.
Hi,
I ran
npm update
a few days ago, and my bot has been unable to connect to IRC since.Running the bot with strace shows that the bot actually tries to connect over port 443 and uses TLS:
Here is my code:
and my config:
Versions: