correctd dns lookup

This commit is contained in:
Andreas Balogh
2021-02-11 16:58:44 +01:00
parent 1d50b86b20
commit 84488e6bcb
2 changed files with 4 additions and 1 deletions

View File

@@ -48,5 +48,6 @@ unit_test:
paths:
- var/
script:
- apt-get install -y wget
- mkdir var
- wget webui:5000 -o var/index.html

View File

@@ -1,10 +1,12 @@
from ZEO.ClientStorage import ClientStorage
from ZODB import DB
import socket
from flask import Flask
app = Flask(__name__)
storage = ClientStorage(("zeo", 8100))
addr = socket.gethostbyname("zeo")
storage = ClientStorage((addr, 8100))
db = DB(storage)
cx = db.open()