From 8323445c801a77b833142bf82e1214d9116c5489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=94=81?= <52o@qq52o.cn> Date: Tue, 8 Jun 2021 11:31:22 +0800 Subject: [PATCH] Fix EVENT_HANDSHAKE BC and Fix typo (#4248) --- src/network/dns.cc | 2 +- tools/constant-generator.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/network/dns.cc b/src/network/dns.cc index faf4350caf7..afb9828c714 100644 --- a/src/network/dns.cc +++ b/src/network/dns.cc @@ -30,7 +30,7 @@ enum swDNS_type { }; enum swDNS_error { - SW_DNS_NOT_EXIST, // Error: adress does not exist + SW_DNS_NOT_EXIST, // Error: address does not exist SW_DNS_TIMEOUT, // Lookup time expired SW_DNS_ERROR // No memory or other error }; diff --git a/tools/constant-generator.php b/tools/constant-generator.php index 05de99ff90c..1eb9602931b 100755 --- a/tools/constant-generator.php +++ b/tools/constant-generator.php @@ -40,6 +40,9 @@ $event_result = ''; foreach ($server_events as $event) { + if ($event === 'HandShake') { + $event = 'handshake'; + } $event_result .= space(4) . sprintf("public const EVENT_%s = '%s';\n\n", strtoupper(unCamelize($event)), lcfirst($event)); }