Last active
March 27, 2024 14:14
-
-
Save T0biii/07f63dbea81072cb2176b0ddc4f27d70 to your computer and use it in GitHub Desktop.
lua parse-wgkex-response.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
lua parse-wgkex-response.lua '{"Message":"OK"}' | |
-- | |
no error Message/Output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
lua parse-wgkex-response.lua '{"Message":"ok"}' | |
-- | |
ua: parse-wgkex-response.lua:12: Malformed JSON response, missing required value: Endpoint | |
stack traceback: | |
[C]: in function 'assert' | |
parse-wgkex-response.lua:12: in main chunk | |
[C]: ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
lua parse-wgkex-response.lua '{"Endpoint":{"Address":"gw04.ext.ffmuc.net","AllowedIPs":[],"Port":"40011","PublicKey":"TszFS3oFRdhsJP3K0VOlklGMGYZy+oFCtlaghXJqW2g="}}' | |
-- | |
lua: parse-wgkex-response.lua:17: Malformed JSON response, missing required value: AllowedIPs1 | |
stack traceback: | |
[C]: in function 'assert' | |
parse-wgkex-response.lua:17: in main chunk | |
[C]: ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
lua parse-wgkex-response.lua '{}' | |
-- | |
lua: parse-wgkex-response.lua:12: Malformed JSON response, missing required value: Endpoint | |
stack traceback: | |
[C]: in function 'assert' | |
parse-wgkex-response.lua:12: in main chunk | |
[C]: ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
lua parse-wgkex-response.lua '{"Endpoint":{"Address":"gw04.ext.ffmuc.net","AllowedIPs":["fe80::27c:16ff:fec0:6c74"],"Port":"40011","PublicKey":"TszFS3oFRdhsJP3K0VOlklGMGYZy+oFCtlaghXJqW2g="}}' | |
-- | |
gw04.ext.ffmuc.net | |
40011 | |
TszFS3oFRdhsJP3K0VOlklGMGYZy+oFCtlaghXJqW2g= | |
fe80::27c:16ff:fec0:6c74 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
lua parse-wgkex-response.lua '{"Endpoint":{"AllowedIPs":["fe80::27c:16ff:fec0:6c74"],"Port":"40011","PublicKey":"TszFS3oFRdhsJP3K0VOlklGMGYZy+oFCtlaghXJqW2g="}}' | |
-- | |
lua: parse-wgkex-response.lua:13: Malformed JSON response, missing required value: Address | |
stack traceback: | |
[C]: in function 'assert' | |
parse-wgkex-response.lua:13: in main chunk | |
[C]: ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
lua parse-wgkex-response.lua '{"Endpoint":{"Address":"gw04.ext.ffmuc.net","Port":"40011","PublicKey":"TszFS3oFRdhsJP3K0VOlklGMGYZy+oFCtlaghXJqW2g="}}' | |
-- | |
lua: parse-wgkex-response.lua:16: Malformed JSON response, missing required value: AllowedIPs | |
stack traceback: | |
[C]: in function 'assert' | |
parse-wgkex-response.lua:16: in main chunk | |
[C]: ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
lua parse-wgkex-response.lua | |
-- | |
lua: parse-wgkex-response.lua:3: Malformed JSON response, no data provided | |
stack traceback: | |
[C]: in function 'assert' | |
parse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
lua parse-wgkex-response.lua '{"Endpoint":{"Address":"gw04.ext.ffmuc.net","AllowedIPs":["fe80::27c:16ff:fec0:6c74"],"PublicKey":"TszFS3oFRdhsJP3K0VOlklGMGYZy+oFCtlaghXJqW2g="}}' | |
-- | |
lua: parse-wgkex-response.lua:14: Malformed JSON response, missing required value: Port | |
stack traceback: | |
[C]: in function 'assert' | |
parse-wgkex-response.lua:14: in main chunk | |
[C]: ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
lua parse-wgkex-response.lua '{"Endpoint":{"Address":"gw04.ext.ffmuc.net","AllowedIPs":["fe80::27c:16ff:fec0:6c74"],"Port":"40011"}}' | |
-- | |
lua: parse-wgkex-response.lua:15: Malformed JSON response, missing required value: PublicKey | |
stack traceback: | |
[C]: in function 'assert' | |
parse-wgkex-response.lua:15: in main chunk | |
[C]: ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
ua parse-wgkex-response.lua '{s}' | |
-- | |
lua: parse-wgkex-response.lua:4: Malformed JSON response, wrong JSON format | |
stack traceback: | |
[C]: in function 'assert' | |
parse-wgkex-response.lua:4: in main chunk | |
[C]: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment