Add server options on conn #114

Merged
lunny merged 1 commits from lunny/conn_add_opts into master 2020-05-08 02:39:52 +00:00

View File

@ -68,6 +68,11 @@ func (conn *Conn) PublicIP() string {
return conn.server.PublicIP
}
// ServerOpts returns the server options
func (conn *Conn) ServerOpts() *ServerOpts {
return conn.server.ServerOpts
}
func (conn *Conn) passiveListenIP() string {
var listenIP string
if len(conn.PublicIP()) > 0 {