Go to the source code of this file.
Macros | |
| #define | BastionGuard_WARNING_DEFAULT_HTTP 81 |
| #define | BastionGuard_WARNING_DEFAULT_HTTPS 444 |
| #define | BastionGuard_LOCAL_WARNING_IP "127.0.0.2" |
Functions | |
| static std::string | to_lower (std::string s) |
| static std::string | clean_domain (std::string d) |
| static std::string | read_last_lines (const std::string &path, size_t max_lines=50) |
| static std::string | html_escape (const std::string &s) |
| static std::string | extract_host (const std::string &raw) |
| static void | load_list_file (const std::string &path, std::vector< std::string > &out) |
| static void | ensure_trusted_loaded () |
| static bool | is_trusted_domain (const std::string &host) |
| static bool | listen_one (SoupServer *srv, const char *addr_str, int port, bool https, GError **error) |
Variables | |
| static std::unordered_set< std::string > | g_trusted |
| static bool | g_trusted_loaded = false |
| #define BastionGuard_LOCAL_WARNING_IP "127.0.0.2" |
Definition at line 50 of file local_warning_server.cpp.
Referenced by LocalWarningServer::LocalWarningServer(), and LocalWarningServer::on_request().
| #define BastionGuard_WARNING_DEFAULT_HTTP 81 |
Definition at line 44 of file local_warning_server.cpp.
Referenced by LocalWarningServer::LocalWarningServer().
| #define BastionGuard_WARNING_DEFAULT_HTTPS 444 |
Definition at line 47 of file local_warning_server.cpp.
Referenced by LocalWarningServer::LocalWarningServer().
|
static |
Definition at line 59 of file local_warning_server.cpp.
References clean_domain(), and to_lower().
Referenced by LocalWarningServer::on_request().
|
static |
Definition at line 180 of file local_warning_server.cpp.
References _, ensure_trusted_loaded(), g_trusted, g_trusted_loaded, and load_list_file().
|
static |
Definition at line 113 of file local_warning_server.cpp.
References extract_host().
Referenced by extract_host(), and LocalWarningServer::on_request().
|
static |
Definition at line 95 of file local_warning_server.cpp.
References html_escape().
Referenced by html_escape(), and LocalWarningServer::on_request().
|
static |
Definition at line 195 of file local_warning_server.cpp.
References clean_domain(), ensure_trusted_loaded(), g_trusted, and is_trusted_domain().
Referenced by LocalWarningServer::on_request().
|
static |
Definition at line 210 of file local_warning_server.cpp.
References _, and listen_one().
Referenced by listen_one(), and LocalWarningServer::start().
|
static |
Definition at line 152 of file local_warning_server.cpp.
References clean_domain(), and load_list_file().
|
static |
Definition at line 68 of file local_warning_server.cpp.
References _, and read_last_lines().
Referenced by read_last_lines().
|
static |
Definition at line 54 of file local_warning_server.cpp.
References to_lower().
|
static |
Definition at line 149 of file local_warning_server.cpp.
|
static |
Definition at line 150 of file local_warning_server.cpp.