Compilation fix

This commit is contained in:
Luca Deri 2018-07-06 22:48:00 +02:00
parent a4730f33c1
commit cb8f8997de

View file

@ -450,8 +450,14 @@ void HTTPserver::setCaptiveRedirectAddress(const char *addr) {
if(!wispr_captive_data)
wispr_captive_data = (char *) malloc(max_wispr_size);
const char *name = ntop->getPro()->get_product_name();
const char *name =
#ifdef HAVE_NEDGE
ntop->getPro()->get_product_name()
#else
"ntopng"
#endif
;
snprintf(wispr_captive_data, max_wispr_size, "<HTML>\n\
<!--\n\
<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\