MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / configureAdapter

Method configureAdapter

src/helper/macos/wireguard/wireguardcontroller.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46bool WireGuardController::configureAdapter(const std::string &ipAddress, const std::string &dnsAddressList,
47 const std::string &dnsScriptName, const std::vector<std::string> &allowedIps)
48{
49 if (!is_initialized_ || !adapter_.get())
50 return false;
51 return adapter_->setIpAddress(ipAddress)
52 && adapter_->setDnsServers(dnsAddressList, dnsScriptName)
53 && adapter_->enableRouting(allowedIps);
54}
55
56bool WireGuardController::configureDefaultRouteMonitor(const std::string &peerEndpoint)
57{

Callers 1

configureWireGuardFunction · 0.45

Calls 4

getMethod · 0.45
setIpAddressMethod · 0.45
setDnsServersMethod · 0.45
enableRoutingMethod · 0.45

Tested by

no test coverage detected