mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-01 17:41:12 +00:00
refactor: modernize standard library usage across six Sonar rules (#5930)
This commit is contained in:
1 parent
81a677c1ee
commit
80588defde
37 files changed
+464
-121
No files matched your search
+8
-8
@@ -18,15 +18,15 @@ namespace ip = boost::asio::ip;
|
||||
|
||||
namespace net {
|
||||
/**
|
||||
* @brief Pc ips v4.
|
||||
* @brief IPv4 loopback networks used for local-client classification.
|
||||
*/
|
||||
std::vector<ip::network_v4> pc_ips_v4 {
|
||||
std::vector pc_ips_v4 {
|
||||
ip::make_network_v4("127.0.0.0/8"sv),
|
||||
};
|
||||
/**
|
||||
* @brief Lan ips v4.
|
||||
* @brief IPv4 private and link-local networks used for LAN classification.
|
||||
*/
|
||||
std::vector<ip::network_v4> lan_ips_v4 {
|
||||
std::vector lan_ips_v4 {
|
||||
ip::make_network_v4("192.168.0.0/16"sv),
|
||||
ip::make_network_v4("172.16.0.0/12"sv),
|
||||
ip::make_network_v4("10.0.0.0/8"sv),
|
||||
@@ -35,15 +35,15 @@ namespace net {
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Pc ips v6.
|
||||
* @brief IPv6 loopback networks used for local-client classification.
|
||||
*/
|
||||
std::vector<ip::network_v6> pc_ips_v6 {
|
||||
std::vector pc_ips_v6 {
|
||||
ip::make_network_v6("::1/128"sv),
|
||||
};
|
||||
/**
|
||||
* @brief Lan ips v6.
|
||||
* @brief IPv6 private and link-local networks used for LAN classification.
|
||||
*/
|
||||
std::vector<ip::network_v6> lan_ips_v6 {
|
||||
std::vector lan_ips_v6 {
|
||||
ip::make_network_v6("fc00::/7"sv),
|
||||
ip::make_network_v6("fe80::/64"sv),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user