Redirect Ipv6 link-local connections to non-link-local address.
This commit is contained in:
+9
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user