This commit is contained in:
Timur A. Fatkhullin
2024-11-26 00:23:16 +03:00
parent ecca565f3f
commit 3f34efd244
3 changed files with 50 additions and 13 deletions

View File

@@ -162,13 +162,14 @@ int main(int argc, char* argv[])
for (auto& ep : epnt) {
adc::AdcEndpoint epn(ep);
if (epn.isValid()) {
if (epn.isLocalSeqpacket() || epn.isLocalStream()) {
if (epn.path()[0] == '@') { // replace '@' to '\0' (use of UNIX abstract namespace)
auto it = std::ranges::find(ep, '@');
*it = '\0';
epn = adc::AdcEndpoint(ep);
}
}
epn.makeAbstract('@');
// if (epn.isLocalSeqpacket() || epn.isLocalStream()) {
// if (epn.path()[0] == '@') { // replace '@' to '\0' (use of UNIX abstract namespace)
// auto it = std::ranges::find(ep, '@');
// *it = '\0';
// epn = adc::AdcEndpoint(ep);
// }
// }
// std::cout << "try to start listenning at '" << ep << "' ...";