Commit 1e10d275 authored by ibuler's avatar ibuler

[Bugfix] 如果domain 没有gateway

parent 4cc45e03
......@@ -87,10 +87,12 @@ class ProxyServer:
pass
def get_proxy_sock(self, asset):
sock = None
domain = self.app.service.get_domain_detail_with_gateway(
asset.domain
)
sock = None
if not domain.gateways:
return None
for i in domain.gateways:
gateway = domain.random_gateway()
proxy_command = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment