Do not resolve addresses
This commit is contained in:
+1
-1
@@ -1146,7 +1146,7 @@ class Controller( Node ):
|
|||||||
listening = self.cmd( "echo A | telnet -e A %s %d" %
|
listening = self.cmd( "echo A | telnet -e A %s %d" %
|
||||||
( self.ip, self.port ) )
|
( self.ip, self.port ) )
|
||||||
if 'Connected' in listening:
|
if 'Connected' in listening:
|
||||||
servers = self.cmd( 'netstat -atp' ).split( '\n' )
|
servers = self.cmd( 'netstat -natp' ).split( '\n' )
|
||||||
pstr = ':%d ' % self.port
|
pstr = ':%d ' % self.port
|
||||||
clist = servers[ 0:1 ] + [ s for s in servers if pstr in s ]
|
clist = servers[ 0:1 ] + [ s for s in servers if pstr in s ]
|
||||||
raise Exception( "Please shut down the controller which is"
|
raise Exception( "Please shut down the controller which is"
|
||||||
|
|||||||
Reference in New Issue
Block a user