|
@@ -75,11 +75,11 @@ class ResponddClient:
|
|
|
|
|
|
if not self._config["dry_run"]:
|
|
|
if compress:
|
|
|
- sock.sendto(response.getJSONCompressed(request), sender)
|
|
|
+ self._sock.sendto(response.getJSONCompressed(request), sender)
|
|
|
else:
|
|
|
- sock.sendto(response.getJSON(request), sender)
|
|
|
+ self._sock.sendto(response.getJSON(request), sender)
|
|
|
|
|
|
if self._config["verbose"] or self._config["dry_run"]:
|
|
|
print("%35s %5d %13s: " % (sender[0], sender[1], request), end='')
|
|
|
- print(json.dumps(response.getStruct(), sort_keys=True, indent=4))
|
|
|
+ print(json.dumps(response.getStruct(request), sort_keys=True, indent=4))
|
|
|
|