Skip to content

Commit a8b185d

Browse files
committed
Missing const for global_known_proto and global_mimes
1 parent e03473b commit a8b185d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

proxy/include/proxy/proxy_server.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ R"x*x*x(<html>
291291
inline const uint16_t nosie_injection_max_len = 0x0fff;
292292

293293
// global_known_proto 用于指定全局已知的协议, 用于噪声注入时避免生成已知的协议头.
294-
inline std::set<uint8_t> global_known_proto =
294+
inline const std::set<uint8_t> global_known_proto =
295295
{
296296
0x04, // socks4
297297
0x05, // socks5
@@ -301,7 +301,7 @@ R"x*x*x(<html>
301301
0x16, // ssl
302302
};
303303

304-
inline std::map<std::string, std::string> global_mimes =
304+
inline const std::map<std::string, std::string> global_mimes =
305305
{
306306
{ ".html", "text/html; charset=utf-8" },
307307
{ ".htm", "text/html; charset=utf-8" },

0 commit comments

Comments
 (0)