Changeset 6149
- Timestamp:
- 01/13/09 16:27:37 (6 months ago)
- Files:
-
- 1 modified
-
framework3/trunk/lib/rex/socket/comm/local.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
framework3/trunk/lib/rex/socket/comm/local.rb
r6148 r6149 45 45 sock.setsockopt(::Socket::IPPROTO_IP, ::Socket::IP_HDRINCL, 1) 46 46 47 return sock if (param.bare?)48 49 sock.extend(::Rex::Socket::Ip)50 sock.initsock(param)47 if (param.bare? == false) 48 sock.extend(::Rex::Socket::Ip) 49 sock.initsock(param) 50 end 51 51 52 52 self.instance.notify_socket_created(self, sock, param) … … 148 148 sock.listen(32) 149 149 150 return sock if (param.bare?)151 152 klass = Rex::Socket::TcpServer153 if (param.ssl)154 klass = Rex::Socket::SslTcpServer155 end156 sock.extend(klass) 157 158 sock.initsock(param)150 if (param.bare? == false) 151 klass = Rex::Socket::TcpServer 152 if (param.ssl) 153 klass = Rex::Socket::SslTcpServer 154 end 155 sock.extend(klass) 156 157 sock.initsock(param) 158 end 159 159 # Otherwise, if we're creating a client... 160 160 else
