aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-03-05 10:57:47 +0000
committerMatthew Wild <mwild1@gmail.com>2022-03-05 10:57:47 +0000
commit572bff008745c0e5fa57b349f7a793924eccb387 (patch)
tree9186d8ea677a2efb8c746bb53b5706557a4b9690
parent7b23d9d13628ed8032955745b9c63d68c22734e3 (diff)
downloadprosody-572bff008745c0e5fa57b349f7a793924eccb387.tar.gz
prosody-572bff008745c0e5fa57b349f7a793924eccb387.zip
net.stun: Hyphenate method names for consistency
-rw-r--r--net/stun.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/stun.lua b/net/stun.lua
index a718d4ef..f028b2fc 100644
--- a/net/stun.lua
+++ b/net/stun.lua
@@ -41,8 +41,8 @@ local methods = {
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