Redirect Ipv6 link-local connections to non-link-local address.

This commit is contained in:
Robin Davies
2024-10-09 13:01:17 -04:00
parent 7772a225b8
commit 453301ab38
2 changed files with 300 additions and 33 deletions
+9 -3
View File
@@ -20,19 +20,25 @@
#pragma once
#include <string>
#include <utility>
#include <boost/asio.hpp>
namespace pipedal {
std::string GetInterfaceIpv4Address(const std::string& interfaceName);
bool IsLinkLocalAddress(const std::string fromAddress);
// bool IsLinkLocalAddress(const std::string &fromAddress);
std::string GetNonLinkLocalAddress(const std::string fromAddress);
std::string GetNonLinkLocalAddress(const std::string& fromAddress);
bool IsOnLocalSubnet(const std::string&fromAddress);
bool RemapLinkLocalUrl(
const boost::asio::ip::address &address,
const std::string&url,std::string*outputUrl);
bool ParseHttpAddress(const std::string address,
std::string *pUser,
std::string *pServer,