Comparison

core/s2smanager.lua @ 3309:1c58cb93ef3e

s2smanager: Don't attempt to connect to a nil host (for whatever reason... invalid DNS record perhaps?) (thanks dersd)
author Matthew Wild <mwild1@gmail.com>
date Fri, 02 Jul 2010 17:22:23 +0100
parent 3151:6eca858feb04
child 3312:12fc7e005e8b
comparison
equal deleted inserted replaced
3304:fec74b84df61 3309:1c58cb93ef3e
191 end 191 end
192 192
193 193
194 function attempt_connection(host_session, err) 194 function attempt_connection(host_session, err)
195 local from_host, to_host = host_session.from_host, host_session.to_host; 195 local from_host, to_host = host_session.from_host, host_session.to_host;
196 local connect_host, connect_port = idna_to_ascii(to_host), 5269; 196 local connect_host, connect_port = to_host and idna_to_ascii(to_host), 5269;
197 197
198 if not connect_host then 198 if not connect_host then
199 return false; 199 return false;
200 end 200 end
201 201