357 |
357 |
358 if session.secure == false then |
358 if session.secure == false then |
359 session.secure = true; |
359 session.secure = true; |
360 end |
360 end |
361 |
361 |
362 if session.version >= 1.0 and not (attr.to and attr.from) then |
|
363 |
|
364 (session.log or log)("warn", "Remote of stream "..(session.from_host or "(unknown)").."->"..(session.to_host or "(unknown)") |
|
365 .." failed to specify to (%s) and/or from (%s) hostname as per RFC", tostring(attr.to), tostring(attr.from)); |
|
366 end |
|
367 |
|
368 if session.direction == "incoming" then |
362 if session.direction == "incoming" then |
369 -- Send a reply stream header |
363 -- Send a reply stream header |
370 session.to_host = attr.to and nameprep(attr.to); |
364 session.to_host = attr.to and nameprep(attr.to); |
371 session.from_host = attr.from and nameprep(attr.from); |
365 session.from_host = attr.from and nameprep(attr.from); |
372 |
366 |