Software /
code /
verse
Diff
plugins/jingle_s5b.lua @ 457:73d4eb93657b
Update to use util.id for random ids instead of counters (thanks Zash)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 16 Mar 2023 11:41:52 +0000 |
parent | 392:cdea6a28369e |
child | 490:6b2f31da9610 |
line wrap: on
line diff
--- a/plugins/jingle_s5b.lua Fri Mar 03 12:10:54 2023 +0000 +++ b/plugins/jingle_s5b.lua Thu Mar 16 11:41:52 2023 +0000 @@ -3,7 +3,7 @@ local xmlns_s5b = "urn:xmpp:jingle:transports:s5b:1"; local xmlns_bytestreams = "http://jabber.org/protocol/bytestreams"; local sha1 = require "util.hashes".sha1; -local uuid_generate = require "util.uuid".generate; +local new_id = require "util.id".short; local function negotiate_socks5(conn, hash) local function suppress_connected() @@ -92,7 +92,7 @@ local s5b = {}; function s5b:generate_initiate() - self.s5b_sid = uuid_generate(); + self.s5b_sid = new_id(); local transport = verse.stanza("transport", { xmlns = xmlns_s5b, mode = "tcp", sid = self.s5b_sid }); local p = 0;