1
0
Fork 0

Update: support tcp-mode (in frontend/backend)

This commit is contained in:
till 2020-05-30 15:50:22 +02:00
parent 869fdead3d
commit f5b097616e
No known key found for this signature in database
GPG key ID: B119050E2EBA1DC5
3 changed files with 30 additions and 3 deletions

View file

@ -36,6 +36,7 @@ for line in lineList:
if "com.byjg.easyhaproxy.host." + definition not in d:
continue
mode = d["com.byjg.easyhaproxy.mode." + definition] if "com.byjg.easyhaproxy.mode." + definition in d else "http"
port = d["com.byjg.easyhaproxy.port." + definition] if "com.byjg.easyhaproxy.port." + definition in d else "80"
hash = hashlib.md5(d["com.byjg.easyhaproxy.sslcert." + definition].encode('utf-8')).hexdigest() if "com.byjg.easyhaproxy.sslcert." + definition in d else ""
@ -43,6 +44,7 @@ for line in lineList:
if key not in easymapping:
easymapping[key] = {
"mode": mode,
"port": port,
"hosts": dict(),
"redirect": dict(),