diff --git a/web/app.py b/web/app.py index f9ab82c..5e8759a 100644 --- a/web/app.py +++ b/web/app.py @@ -2986,6 +2986,9 @@ TG #: ''' + str(tg_d.tg) + ''' tg_list = '' for m in m_list: br = BridgeRules.query.filter_by(server=server).filter_by(system_name=m.name).all() + m_passphrase = m.passphrase + if m.enable_um == True: + m_passphrase = '''**Generated Passphrase**''' print(br) ## for t in br: ## print(t.tg) @@ -3010,7 +3013,7 @@ TG #: ''' + str(tg_d.tg) + '''
-Name: ''' + m.name + '''  -  Port: ''' + str(m.port) + ''' +Name: ''' + m.name + '''  -  Port: ''' + str(m.port) + ''' - Passphrase: ''' + m_passphrase + '''
@@ -3038,6 +3041,10 @@ Name: ''' + m.name + '''  -  Port: ''' + str( for p in p_list: br = BridgeRules.query.filter_by(server=server).filter_by(system_name=p.name).all() + print(p.enable_um) + p_passphrase = p.passphrase + if p.enable_um == True: + p_passphrase = '''**Generated Passphrase**''' for b in br: bl = BridgeList.query.filter_by(bridge_name=b.bridge_name).first() ## print(bl.bridge_name) @@ -3057,7 +3064,7 @@ Name: ''' + m.name + '''  -  Port: ''' + str(
-Name: ''' + p.name + '''  -  Port: ''' + str(p.external_port) + ''' +Name: ''' + p.name + '''  -  Port: ''' + str(p.external_port) + ''' - Passphrase: ''' + p_passphrase + '''