+ int zero = 0;
+ int err = srt_setsockopt(sock, /*level=*/0, SRTO_IPV6ONLY, &zero, sizeof(zero));
+ if (err != 0) {
+ fprintf(stderr, "srt_setsockopt(SRTO_IPV6ONLY): %s\n", srt_getlasterror_str());
+ abort();
+ }
+ err = srt_bind(sock, (sockaddr *)&addr, sizeof(addr));