https://reisub.nsupdate.info/git
/
relay.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b15665e
)
format instance name instead of inbox url
author
Tristan Mahé
<gled@remote-shell.net>
Wed, 31 Oct 2018 18:58:10 +0000
(11:58 -0700)
committer
Tristan Mahé
<gled@remote-shell.net>
Wed, 31 Oct 2018 18:58:10 +0000
(11:58 -0700)
relay/default.py
patch
|
blob
|
history
diff --git
a/relay/default.py
b/relay/default.py
index
de2dc1e
..
172c9d3
100644
(file)
--- a/
relay/default.py
+++ b/
relay/default.py
@@
-1,10
+1,11
@@
import aiohttp.web
+import re
from . import app, CONFIG
from .database import DATABASE
host = CONFIG['ap']['host']
note = CONFIG['note']
-targets = '<br>'.join([
target
for target in DATABASE.get('relay-list', [])])
+targets = '<br>'.join([
re.search('https://(.*)/inbox',target).group(1)
for target in DATABASE.get('relay-list', [])])
async def default(request):
return aiohttp.web.Response(