`session.session_host` might be better. 

@todb-r7, do you have an opinion here?  `session.sock.peerhost` will usually be the external address and `session.session_host` will usually be the internal as reported by `session.net.config.interfaces`. If the host was compromised through a pivot, `session.sock.peerhost` can be nil, while `session.session_host` is still correct.