|
@@ -108,7 +108,8 @@ static dhcps_offer_t dhcps_offer = 0xFF;
|
|
|
static dhcps_offer_t dhcps_dns = 0x00;
|
|
|
static dhcps_cb_t dhcps_cb;
|
|
|
|
|
|
-#define DHCPS_CAPTIVE_PORTAL 1 /* 0 = off, 1 = new only, 2 = old + new */
|
|
|
+#define DHCPS_CAPTIVE_PORTAL 1 /* 0 = off, 1 = new only, 2 = old + new */
|
|
|
+#define DHCPS_CAPTIVE_API_URL "/portal.capt"
|
|
|
|
|
|
/******************************************************************************
|
|
|
* FunctionName : dhcps_option_info
|
|
@@ -392,7 +393,9 @@ static u8_t *add_offer_options(u8_t *optptr)
|
|
|
|
|
|
for (i = 0; i < DHCPS_CAPTIVE_PORTAL; i++) {
|
|
|
optptr[0] = i ? CAPTIVE_PORTAL_OLD : CAPTIVE_PORTAL;
|
|
|
- optptr[1] = snprintf(optptr+2, 256, "http://%u.%u.%u.%u/",
|
|
|
+ optptr[1] = snprintf(optptr+2, 256,
|
|
|
+ "http://%u.%u.%u.%u"
|
|
|
+ DHCPS_CAPTIVE_API_URL,
|
|
|
ip4_addr1(&ipadd), ip4_addr2(&ipadd),
|
|
|
ip4_addr3(&ipadd), ip4_addr4(&ipadd));
|
|
|
optptr += optptr[1] + 2;
|