mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
09372994bb
Adds support for building Lokinet as a system extension, and fixes various problems in the macos implementation found during development of the system extension support.
16 lines
678 B
C++
16 lines
678 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace llarp::apple
|
|
{
|
|
/// Localhost port on macOS where we proxy DNS requests *through* the tunnel, because without
|
|
/// calling into special snowflake Apple network APIs an extension's network connections all go
|
|
/// around the tunnel, even when the tunnel is (supposedly) the default route.
|
|
inline constexpr std::uint16_t dns_trampoline_port = 1053;
|
|
|
|
/// We query the above trampoline from unbound with this fixed source port (so that the trampoline
|
|
/// is simplified by not having to track different ports for different requests).
|
|
inline constexpr std::uint16_t dns_trampoline_source_port = 1054;
|
|
} // namespace llarp::apple
|