equal
deleted
inserted
replaced
367 |
367 |
368 if session.secure == false then |
368 if session.secure == false then |
369 session.secure = true; |
369 session.secure = true; |
370 end |
370 end |
371 |
371 |
372 if session.version >= 1.0 and not (attr.to and attr.from) then |
|
373 (session.log or log)("warn", "Remote of stream "..(session.from_host or "(unknown)").."->"..(session.to_host or "(unknown)") |
|
374 .." failed to specify to (%s) and/or from (%s) hostname as per RFC", tostring(attr.to), tostring(attr.from)); |
|
375 end |
|
376 |
|
377 if session.direction == "incoming" then |
372 if session.direction == "incoming" then |
378 -- Send a reply stream header |
373 -- Send a reply stream header |
379 session.to_host = attr.to and nameprep(attr.to); |
374 session.to_host = attr.to and nameprep(attr.to); |
380 session.from_host = attr.from and nameprep(attr.from); |
375 session.from_host = attr.from and nameprep(attr.from); |
381 |
376 |