fix(regtests): Bind to 127.0.0.1 and not localhost (#1937)

* fix(regtests): Bind to 127.0.0.1 and not localhost

* Split start into start/serve
This commit is contained in:
Roy Jacobson 2023-09-27 14:58:52 +03:00 committed by GitHub
parent fe5c6968ea
commit ab903612f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 90 additions and 82 deletions

View file

@ -20,13 +20,13 @@ using facade::kWrongTypeErr;
#ifndef RETURN_ON_ERR
#define RETURN_ON_ERR_T(T, x) \
do { \
std::error_code __ec = (x); \
if (__ec) { \
DLOG(ERROR) << "Error " << __ec << " while calling " #x; \
return (T)(__ec); \
} \
#define RETURN_ON_ERR_T(T, x) \
do { \
std::error_code __ec = (x); \
if (__ec) { \
DLOG(ERROR) << "Error while calling " #x ": " << __ec.message(); \
return (T)(__ec); \
} \
} while (0)
#define RETURN_ON_ERR(x) RETURN_ON_ERR_T(std::error_code, x)