Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 6e32781

Browse files
authored
v1.9.7 to permit using HTTP port different from 80
### Releases v1.9.7 1. Fix bug to permit using HTTP port different from 80. Check [WiFiManager works only on port 80 #75](#75)
1 parent 924808d commit 6e32781

14 files changed

+53
-37
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Please ensure to specify the following:
2929
Arduino IDE version: 1.8.16
3030
ESP8266 Core Version 3.0.2
3131
OS: Ubuntu 20.04 LTS
32-
Linux xy-Inspiron-3593 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
32+
Linux xy-Inspiron-3593 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
3333
3434
Context:
3535
I encountered an endless loop while trying to connect to Local WiFi.

README.md

+17-15
Original file line numberDiff line numberDiff line change
@@ -2109,7 +2109,7 @@ ESPAsync_wifiManager.setRemoveDuplicateAPs(false);
21092109
#error This code is intended to run on the ESP8266 or ESP32 platform! Please check your Tools->Board setting.
21102110
#endif
21112111

2112-
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.6"
2112+
#define ESP_ASYNC_WIFIMANAGER_VERSION_MIN_TARGET "ESPAsync_WiFiManager v1.9.7"
21132113

21142114
// Use from 0 to 4. Higher number, more debugging messages and memory usage.
21152115
#define _ESPASYNC_WIFIMGR_LOGLEVEL_ 3
@@ -3475,7 +3475,7 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Medium
34753475
34763476
```
34773477
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
3478-
ESPAsync_WiFiManager v1.9.6
3478+
ESPAsync_WiFiManager v1.9.7
34793479
ESP_DoubleResetDetector v1.2.1
34803480
Config File not found
34813481
Can't read Config File, using default values
@@ -3494,7 +3494,7 @@ Opening Configuration Portal. No timeout : DRD or No stored Credentials..
34943494
34953495
```
34963496
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Medium using LittleFS on ESP32_DEV
3497-
ESPAsync_WiFiManager v1.9.6
3497+
ESPAsync_WiFiManager v1.9.7
34983498
ESP_DoubleResetDetector v1.2.1
34993499
Config File not found
35003500
Can't read Config File, using default values
@@ -3582,7 +3582,7 @@ This is terminal debug output when running [Async_ConfigOnDRD_FS_MQTT_Ptr_Comple
35823582
35833583
```
35843584
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU_ESP12E
3585-
ESPAsync_WiFiManager v1.9.6
3585+
ESPAsync_WiFiManager v1.9.7
35863586
ESP_DoubleResetDetector v1.2.1
35873587
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
35883588
Config File successfully parsed
@@ -3622,7 +3622,7 @@ TWWWW WTWWW
36223622
36233623
```
36243624
Starting Async_ConfigOnDRD_FS_MQTT_Ptr_Complex using LittleFS on ESP8266_NODEMCU_ESP12E
3625-
ESPAsync_WiFiManager v1.9.6
3625+
ESPAsync_WiFiManager v1.9.7
36263626
ESP_DoubleResetDetector v1.2.1
36273627
{"AIO_SERVER_Label":"io.adafruit.com","AIO_SERVERPORT_Label":"1883","AIO_USERNAME_Label":"user_name","AIO_KEY_Label":"aio_key"}
36283628
Config File successfully parsed
@@ -3712,7 +3712,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
37123712
37133713
```cpp
37143714
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using SPIFFS on ESP32_DEV
3715-
ESPAsync_WiFiManager v1.9.6
3715+
ESPAsync_WiFiManager v1.9.7
37163716
ESP_DoubleResetDetector v1.2.1
37173717
[WM] RFC925 Hostname = ConfigOnDoubleReset
37183718
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
@@ -3771,7 +3771,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
37713771

37723772
```cpp
37733773
Starting Async_ConfigOnDoubleReset with DoubleResetDetect using LittleFS on ESP8266_NODEMCU_ESP12E
3774-
ESPAsync_WiFiManager v1.9.6
3774+
ESPAsync_WiFiManager v1.9.7
37753775
ESP_DoubleResetDetector v1.2.1
37763776
[WM] RFC925 Hostname = ConfigOnDoubleReset
37773777
[WM] setSTAStaticIPConfig for USE_CONFIGURABLE_DNS
@@ -3831,7 +3831,7 @@ This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/
38313831
38323832
```cpp
38333833
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU_ESP12E
3834-
ESPAsync_WiFiManager v1.9.6
3834+
ESPAsync_WiFiManager v1.9.7
38353835
ESP_DoubleResetDetector v1.2.1
38363836
Opening / directory
38373837
FS File: CanadaFlag_1.png, size: 40.25KB
@@ -3909,7 +3909,7 @@ This is terminal debug output when running [Async_ESP32_FSWebServer_DRD](example
39093909

39103910
```
39113911
Starting Async_ESP32_FSWebServer_DRD using LittleFS on ESP32_DEV
3912-
ESPAsync_WiFiManager v1.9.6
3912+
ESPAsync_WiFiManager v1.9.7
39133913
ESP_DoubleResetDetector v1.2.1
39143914
FS File: /CanadaFlag_1.png, size: 40.25KB
39153915
FS File: /CanadaFlag_2.png, size: 8.12KB
@@ -4020,7 +4020,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset](examples/
40204020

40214021
```
40224022
Starting Async_ConfigOnDoubleReset using LittleFS on ESP32S2_DEV
4023-
ESPAsync_WiFiManager v1.9.6
4023+
ESPAsync_WiFiManager v1.9.7
40244024
ESP_DoubleResetDetector v1.2.1
40254025
ESP Self-Stored: SSID = HueNet1, Pass = 12345678
40264026
[WM] * Add SSID = HueNet1 , PW = 12345678
@@ -4057,7 +4057,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset_TZ](exampl
40574057

40584058
```
40594059
Starting Async_ConfigOnDoubleReset_TZ using LittleFS on ESP32_DEV
4060-
ESPAsync_WiFiManager v1.9.6
4060+
ESPAsync_WiFiManager v1.9.7
40614061
ESP_DoubleResetDetector v1.2.1
40624062
ESP Self-Stored: SSID = HueNet1, Pass = password
40634063
[WM] * Add SSID = HueNet1 , PW = password
@@ -4101,7 +4101,7 @@ Local Date/Time: Sat May 1 00:17:30 2021
41014101

41024102
```
41034103
Starting Async_ConfigOnDoubleReset_TZ using LittleFS on ESP32_DEV
4104-
ESPAsync_WiFiManager v1.9.6
4104+
ESPAsync_WiFiManager v1.9.7
41054105
ESP_DoubleResetDetector v1.2.1
41064106
ESP Self-Stored: SSID = HueNet1, Pass = password
41074107
[WM] * Add SSID = HueNet1 , PW = password
@@ -4148,7 +4148,7 @@ This is terminal debug output when running [Async_ESP_FSWebServer_DRD](examples/
41484148

41494149
```
41504150
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU_ESP12E
4151-
ESPAsync_WiFiManager v1.9.6
4151+
ESPAsync_WiFiManager v1.9.7
41524152
ESP_DoubleResetDetector v1.2.1
41534153
Opening / directory
41544154
FS File: drd.dat, size: 4B
@@ -4221,7 +4221,7 @@ Local Date/Time: Sat May 1 03:12:54 2021
42214221

42224222
```
42234223
Starting Async_ESP_FSWebServer_DRD using LittleFS on ESP8266_NODEMCU_ESP12E
4224-
ESPAsync_WiFiManager v1.9.6
4224+
ESPAsync_WiFiManager v1.9.7
42254225
ESP_DoubleResetDetector v1.2.1
42264226
Opening / directory
42274227
FS File: drd.dat, size: 4B
@@ -4280,7 +4280,7 @@ This is terminal debug output when running [Async_ConfigOnDoubleReset_TZ](exampl
42804280

42814281
```
42824282
Starting Async_ConfigOnDoubleReset_TZ using SPIFFS on ESP32C3_DEV
4283-
ESPAsync_WiFiManager v1.9.6
4283+
ESPAsync_WiFiManager v1.9.7
42844284
ESP_DoubleResetDetector v1.2.1
42854285
ESP Self-Stored: SSID = HueNet1, Pass = 12345678
42864286
[WM] * Add SSID = HueNet1 , PW = 12345678
@@ -4373,6 +4373,7 @@ Submit issues to: [ESPAsync_WiFiManager issues](https://github.com/khoih-prog/ES
43734373
15. Thanks to [Stephen Lavelle](https://github.com/increpare) and [Ben Peart](https://github.com/benpeart) for requesting enhancement in [_timezoneName never getting set? #51](https://github.com/khoih-prog/ESP_WiFiManager/issues/51) and [How to retrieve timezone? #51](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/51) leading to new v1.8.0
43744374
16. Thanks to [eth0up](https://github.com/eth0up) to make the PR [Add support for Wifi hidden SSID scanning. #66](https://github.com/khoih-prog/ESP_WiFiManager/pull/66) leading to v1.7.4
43754375
17. Thanks to [Francisco Trillo](https://github.com/Frtrillo) for reporting [Not working with ESP32 and Core 2.0.1 (or 2.0.0+) #74](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/74) leading to v1.9.5
4376+
18. Thanks to [Dean Ott](https://github.com/deanjott) for reporting [WiFiManager works only on port 80 #75](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/75) and providing the solution leading to v1.9.7
43764377

43774378

43784379
<table>
@@ -4403,6 +4404,7 @@ Submit issues to: [ESPAsync_WiFiManager issues](https://github.com/khoih-prog/ES
44034404
<tr>
44044405
<td align="center"><a href="https://github.com/eth0up"><img src="https://github.com/eth0up.png" width="100px;" alt="eth0up"/><br /><sub><b>eth0up</b></sub></a><br /></td>
44054406
<td align="center"><a href="https://github.com/Frtrillo"><img src="https://github.com/Frtrillo.png" width="100px;" alt="Frtrillo"/><br /><sub><b>Francisco Trillo</b></sub></a><br /></td>
4407+
<td align="center"><a href="https://github.com/deanjott"><img src="https://github.com/deanjott.png" width="100px;" alt="deanjott"/><br /><sub><b>Dean Ott</b></sub></a><br /></td>
44064408
</tr>
44074409
</table>
44084410

changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## Table of Contents
1313

1414
* [Changelog](#changelog)
15+
* [Releases v1.9.7](#releases-v197)
1516
* [Releases v1.9.6](#releases-v196)
1617
* [Releases v1.9.5](#releases-v195)
1718
* [Releases v1.9.4](#releases-v194)
@@ -43,6 +44,10 @@
4344

4445
## Changelog
4546

47+
### Releases v1.9.7
48+
49+
1. Fix bug to permit using HTTP port different from 80. Check [WiFiManager works only on port 80 #75](https://github.com/khoih-prog/ESPAsync_WiFiManager/issues/75)
50+
4651
### Releases v1.9.6
4752

4853
1. Fix compile error for ESP32 core v1.0.5-

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ESPAsync_WiFiManager",
3-
"version": "1.9.6",
3+
"version": "1.9.7",
44
"keywords": "wifi, wi-fi, WiFiManager, esp8266, esp32, esp32-s2, esp32-c3, AsyncWebServer, Async-WebServer, Async-WiFiManager, MultiWiFi, Async, Communication, Credentials, Config-Portal, DoubleReset, MultiReset, littlefs, spiffs, eeprom, dns-server, iot",
55
"description": "ESP32 (including ESP32-S2 and ESP32-C3), ESP8266 WiFi Connection Manager using AsyncWebServer, with enhanced GUI and fallback Web ConfigPortal. This Library is used for configuring ESP32 (including ESP32-S2 and ESP32-C3), ESP8266 modules WiFi Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP channel. Now with MultiWiFi auto(Re)connect, configurable CORS Header and auto-Timezone features. Auto detect ESP32 core and use either built-in LittleFS or external LITTLEFS library",
66
"authors":

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESPAsync_WiFiManager
2-
version=1.9.6
2+
version=1.9.7
33
author=Khoi Hoang
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
license=MIT

src/ESPAsync_WiFiManager-Impl.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
1616
17-
Version: 1.9.6
17+
Version: 1.9.7
1818
1919
Version Modified By Date Comments
2020
------- ----------- ---------- -----------
@@ -45,6 +45,7 @@
4545
1.9.4 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
4646
1.9.5 K Hoang 26/11/2021 Auto detect ESP32 core and use either built-in LittleFS or LITTLEFS library
4747
1.9.6 K Hoang 26/11/2021 Fix compile error for ESP32 core v1.0.5-
48+
1.9.7 K Hoang 30/11/2021 Fix bug to permit using HTTP port different from 80
4849
*****************************************************************************************************************************/
4950

5051
#pragma once
@@ -2209,8 +2210,8 @@ bool ESPAsync_WiFiManager::captivePortal(AsyncWebServerRequest *request)
22092210
{
22102211
if (!isIp(request->host()))
22112212
{
2212-
LOGDEBUG(F("Request redirected to captive portal"));
2213-
LOGDEBUG1(F("Location http://"), toStringIp(request->client()->localIP()));
2213+
LOGINFO(F("Request redirected to captive portal"));
2214+
LOGINFO1(F("Location http://"), toStringIp(request->client()->localIP()));
22142215

22152216
AsyncWebServerResponse *response = request->beginResponse(302, WM_HTTP_HEAD_CT2, "");
22162217
response->addHeader("Location", String("http://") + toStringIp(request->client()->localIP()));
@@ -2286,7 +2287,7 @@ bool ESPAsync_WiFiManager::isIp(String str)
22862287
{
22872288
int c = str.charAt(i);
22882289

2289-
if (c != '.' && (c < '0' || c > '9'))
2290+
if (c != '.' && c != ':' && (c < '0' || c > '9'))
22902291
{
22912292
return false;
22922293
}

src/ESPAsync_WiFiManager.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
1616
17-
Version: 1.9.6
17+
Version: 1.9.7
1818
1919
Version Modified By Date Comments
2020
------- ----------- ---------- -----------
@@ -45,6 +45,7 @@
4545
1.9.4 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
4646
1.9.5 K Hoang 26/11/2021 Auto detect ESP32 core and use either built-in LittleFS or LITTLEFS library
4747
1.9.6 K Hoang 26/11/2021 Fix compile error for ESP32 core v1.0.5-
48+
1.9.7 K Hoang 30/11/2021 Fix bug to permit using HTTP port different from 80
4849
*****************************************************************************************************************************/
4950

5051
#pragma once
@@ -66,7 +67,7 @@
6667
#define USING_ESP32_C3 true
6768
#endif
6869

69-
#define ESP_ASYNC_WIFIMANAGER_VERSION "ESPAsync_WiFiManager v1.9.6"
70+
#define ESP_ASYNC_WIFIMANAGER_VERSION "ESPAsync_WiFiManager v1.9.7"
7071

7172
#if ESP8266
7273
#if (ARDUINO_ESP8266_GIT_VER == 0xcf6ff4c4)

src/ESPAsync_WiFiManager_Debug.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
1616
17-
Version: 1.9.6
17+
Version: 1.9.7
1818
1919
Version Modified By Date Comments
2020
------- ----------- ---------- -----------
@@ -45,6 +45,7 @@
4545
1.9.4 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
4646
1.9.5 K Hoang 26/11/2021 Auto detect ESP32 core and use either built-in LittleFS or LITTLEFS library
4747
1.9.6 K Hoang 26/11/2021 Fix compile error for ESP32 core v1.0.5-
48+
1.9.7 K Hoang 30/11/2021 Fix bug to permit using HTTP port different from 80
4849
*****************************************************************************************************************************/
4950

5051
#pragma once

src_cpp/ESPAsync_WiFiManager.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
1616
17-
Version: 1.9.6
17+
Version: 1.9.7
1818
1919
Version Modified By Date Comments
2020
------- ----------- ---------- -----------
@@ -45,6 +45,7 @@
4545
1.9.4 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
4646
1.9.5 K Hoang 26/11/2021 Auto detect ESP32 core and use either built-in LittleFS or LITTLEFS library
4747
1.9.6 K Hoang 26/11/2021 Fix compile error for ESP32 core v1.0.5-
48+
1.9.7 K Hoang 30/11/2021 Fix bug to permit using HTTP port different from 80
4849
*****************************************************************************************************************************/
4950

5051
#include "ESPAsync_WiFiManager.h"
@@ -2283,7 +2284,7 @@ bool ESPAsync_WiFiManager::isIp(String str)
22832284
{
22842285
int c = str.charAt(i);
22852286

2286-
if (c != '.' && (c < '0' || c > '9'))
2287+
if (c != '.' && c != ':' && (c < '0' || c > '9'))
22872288
{
22882289
return false;
22892290
}

src_cpp/ESPAsync_WiFiManager.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
1616
17-
Version: 1.9.6
17+
Version: 1.9.7
1818
1919
Version Modified By Date Comments
2020
------- ----------- ---------- -----------
@@ -45,6 +45,7 @@
4545
1.9.4 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
4646
1.9.5 K Hoang 26/11/2021 Auto detect ESP32 core and use either built-in LittleFS or LITTLEFS library
4747
1.9.6 K Hoang 26/11/2021 Fix compile error for ESP32 core v1.0.5-
48+
1.9.7 K Hoang 30/11/2021 Fix bug to permit using HTTP port different from 80
4849
*****************************************************************************************************************************/
4950

5051
#pragma once
@@ -66,7 +67,7 @@
6667
#define USING_ESP32_C3 true
6768
#endif
6869

69-
#define ESP_ASYNC_WIFIMANAGER_VERSION "ESPAsync_WiFiManager v1.9.6"
70+
#define ESP_ASYNC_WIFIMANAGER_VERSION "ESPAsync_WiFiManager v1.9.7"
7071

7172
#if ESP8266
7273
#if (ARDUINO_ESP8266_GIT_VER == 0xcf6ff4c4)

src_cpp/ESPAsync_WiFiManager_Debug.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
1616
17-
Version: 1.9.6
17+
Version: 1.9.7
1818
1919
Version Modified By Date Comments
2020
------- ----------- ---------- -----------
@@ -45,6 +45,7 @@
4545
1.9.4 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
4646
1.9.5 K Hoang 26/11/2021 Auto detect ESP32 core and use either built-in LittleFS or LITTLEFS library
4747
1.9.6 K Hoang 26/11/2021 Fix compile error for ESP32 core v1.0.5-
48+
1.9.7 K Hoang 30/11/2021 Fix bug to permit using HTTP port different from 80
4849
*****************************************************************************************************************************/
4950

5051
#pragma once

src_h/ESPAsync_WiFiManager-Impl.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Built by Khoi Hoang https://github.com/khoih-prog/ESPAsync_WiFiManager
1515
Licensed under MIT license
1616
17-
Version: 1.9.6
17+
Version: 1.9.7
1818
1919
Version Modified By Date Comments
2020
------- ----------- ---------- -----------
@@ -45,6 +45,7 @@
4545
1.9.4 K Hoang 10/10/2021 Update `platform.ini` and `library.json`
4646
1.9.5 K Hoang 26/11/2021 Auto detect ESP32 core and use either built-in LittleFS or LITTLEFS library
4747
1.9.6 K Hoang 26/11/2021 Fix compile error for ESP32 core v1.0.5-
48+
1.9.7 K Hoang 30/11/2021 Fix bug to permit using HTTP port different from 80
4849
*****************************************************************************************************************************/
4950

5051
#pragma once
@@ -2209,8 +2210,8 @@ bool ESPAsync_WiFiManager::captivePortal(AsyncWebServerRequest *request)
22092210
{
22102211
if (!isIp(request->host()))
22112212
{
2212-
LOGDEBUG(F("Request redirected to captive portal"));
2213-
LOGDEBUG1(F("Location http://"), toStringIp(request->client()->localIP()));
2213+
LOGINFO(F("Request redirected to captive portal"));
2214+
LOGINFO1(F("Location http://"), toStringIp(request->client()->localIP()));
22142215

22152216
AsyncWebServerResponse *response = request->beginResponse(302, WM_HTTP_HEAD_CT2, "");
22162217
response->addHeader("Location", String("http://") + toStringIp(request->client()->localIP()));
@@ -2286,7 +2287,7 @@ bool ESPAsync_WiFiManager::isIp(String str)
22862287
{
22872288
int c = str.charAt(i);
22882289

2289-
if (c != '.' && (c < '0' || c > '9'))
2290+
if (c != '.' && c != ':' && (c < '0' || c > '9'))
22902291
{
22912292
return false;
22922293
}

0 commit comments

Comments
 (0)