]> git.sesse.net Git - cubemap/blobdiff - config.h
Fix HTTP connections to IPv6 address literals.
[cubemap] / config.h
index e2dcb43050674a9d3d6d54ab5b98cb310739a444..9a5cc571f50a6868623a88370d6a39afa9c0f777 100644 (file)
--- a/config.h
+++ b/config.h
@@ -26,6 +26,11 @@ struct UDPStreamConfig {
        int multicast_iface_index;  // Default is -1 (use operating system default).
 };
 
+struct Gen204Config {
+       std::string url;  // As seen by the client.
+       std::string allow_origin;  // Can be empty.
+};
+
 struct AcceptorConfig {
        sockaddr_in6 addr;
 };
@@ -40,6 +45,7 @@ struct Config {
        int num_servers;
        std::vector<StreamConfig> streams;
        std::vector<UDPStreamConfig> udpstreams;
+       std::vector<Gen204Config> pings;
        std::vector<AcceptorConfig> acceptors;
        std::vector<LogConfig> log_destinations;