|
19 | 19 |
|
20 | 20 | def check_port(port, rais=True):
|
21 | 21 | try:
|
22 |
| - sock = socket.create_connection(("localhost", port)) |
| 22 | + sock = socket.create_connection(("0.0.0.0", port)) |
23 | 23 | except socket.error:
|
24 | 24 | return True
|
25 | 25 | sock.close()
|
@@ -103,7 +103,7 @@ def _admin(self, port):
|
103 | 103 | raise ValueError("Bad port number: '%s'" % port)
|
104 | 104 | if hasattr(self, 'admin'):
|
105 | 105 | del self.admin
|
106 |
| - self.admin = TarantoolAdmin('localhost', port) |
| 106 | + self.admin = TarantoolAdmin('0.0.0.0', port) |
107 | 107 |
|
108 | 108 | @property
|
109 | 109 | def log_des(self):
|
@@ -147,7 +147,7 @@ def __init__(self,
|
147 | 147 | self.args['primary'] = self._socket.name
|
148 | 148 | self.args['admin'] = find_port()
|
149 | 149 | else:
|
150 |
| - self.host = 'localhost' |
| 150 | + self.host = '0.0.0.0' |
151 | 151 | self.args = {}
|
152 | 152 | self._socket = None
|
153 | 153 | self.args['primary'] = find_port()
|
@@ -208,7 +208,7 @@ def wait_until_started(self):
|
208 | 208 |
|
209 | 209 | while True:
|
210 | 210 | try:
|
211 |
| - temp = TarantoolAdmin('localhost', self.args['admin']) |
| 211 | + temp = TarantoolAdmin('0.0.0.0', self.args['admin']) |
212 | 212 | while True:
|
213 | 213 | ans = temp('box.info.status')[0]
|
214 | 214 | if ans in ('running', 'hot_standby', 'orphan') or ans.startswith('replica'):
|
|
0 commit comments