Diff

net/stun.lua @ 12367:7a2f036f73b3

net.stun: Hyphenate method names for consistency
author Matthew Wild <mwild1@gmail.com>
date Sat, 05 Mar 2022 10:57:47 +0000
parent 12360:0801db678f5e
child 12368:d82c8efc6dd5
line wrap: on
line diff
--- a/net/stun.lua	Fri Mar 04 19:48:01 2022 +0000
+++ b/net/stun.lua	Sat Mar 05 10:57:47 2022 +0000
@@ -41,8 +41,8 @@
 	refresh = 0x004;
 	send = 0x006;
 	data = 0x007;
-	create_permission = 0x008;
-	channel_bind = 0x009;
+	["create-permission"] = 0x008;
+	["channel-bind"] = 0x009;
 };
 local method_lookup = {};
 for name, value in pairs(methods) do