Software /
code /
verse
Annotate
libs/net.lua @ 496:c4ae7aa2958a
util.sasl.oauthbearer: Fix message syntax
Each key-value pair has a \001 trailer, and then the whole thing has a
\001 trailer as well, so it should always end with two \001.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Jun 2023 10:11:25 +0200 |
parent | 478:cf6626a12e0e |
rev | line source |
---|---|
478 | 1 return { |
2 pton = function (ip) | |
3 if ip:find":" then | |
4 return "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" | |
5 else | |
6 return "\0\0\0\0" | |
7 end | |
8 end | |
9 } |