mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-09-29 15:50:56 +02:00
Fixes
This commit is contained in:
@@ -300,7 +300,7 @@ void mytimer() {
|
|||||||
Xtea x(key);
|
Xtea x(key);
|
||||||
|
|
||||||
void encip(String &mtk, unsigned long token){
|
void encip(String &mtk, unsigned long token){
|
||||||
unsigned long res[2] = {random(0xFFFFFFFF),token};
|
unsigned long res[2] = {(unsigned long)random(0xFFFFFFFF),token};
|
||||||
x.encrypt(res);
|
x.encrypt(res);
|
||||||
char buf1[18];
|
char buf1[18];
|
||||||
sprintf(buf1, "%08X_%08X",res[0],res[1]); //8 bytes for encryping the IP cookie
|
sprintf(buf1, "%08X_%08X",res[0],res[1]); //8 bytes for encryping the IP cookie
|
||||||
@@ -606,7 +606,7 @@ void setup(){
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef USE_AUTH COOKIE
|
#ifdef USE_AUTH_COOKIE
|
||||||
}).setFilter(myHandshake);
|
}).setFilter(myHandshake);
|
||||||
#else
|
#else
|
||||||
});
|
});
|
||||||
@@ -622,7 +622,7 @@ void setup(){
|
|||||||
settimeofday(&tv, nullptr);
|
settimeofday(&tv, nullptr);
|
||||||
}
|
}
|
||||||
request->send(200, "text/plain","Got browser time ...");
|
request->send(200, "text/plain","Got browser time ...");
|
||||||
#ifdef USE_AUTH COOKIE
|
#ifdef USE_AUTH_COOKIE
|
||||||
}).setFilter(myHandshake);
|
}).setFilter(myHandshake);
|
||||||
#else
|
#else
|
||||||
});
|
});
|
||||||
@@ -640,7 +640,7 @@ void setup(){
|
|||||||
#endif
|
#endif
|
||||||
});
|
});
|
||||||
request->send(200, "text/plain","Restarting ...");
|
request->send(200, "text/plain","Restarting ...");
|
||||||
#ifdef USE_AUTH COOKIE
|
#ifdef USE_AUTH_COOKIE
|
||||||
}).setFilter(myHandshake);
|
}).setFilter(myHandshake);
|
||||||
#else
|
#else
|
||||||
});
|
});
|
||||||
@@ -659,7 +659,7 @@ void setup(){
|
|||||||
#endif
|
#endif
|
||||||
});
|
});
|
||||||
request->send(200, "text/plain","Erasing WiFi data ...");
|
request->send(200, "text/plain","Erasing WiFi data ...");
|
||||||
#ifdef USE_AUTH COOKIE
|
#ifdef USE_AUTH_COOKIE
|
||||||
}).setFilter(myHandshake);
|
}).setFilter(myHandshake);
|
||||||
#else
|
#else
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user