forked from wireshark/wireshark
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lua: Load bit and rex_pcre2 as though through require
Use luaL_requiref to load the bit and rex_pcre2 modules, which adds them to the package.loaded table as though through require, as Lua does with its included standard libraries. This causes `require("bit")` and `require("rex_pcre2")` statements in Lua dissectors to behave as expected, if albeit usually unecessary. The tables are still added to the global environment as before. Fix #20213
- Loading branch information
1 parent
5e277cb
commit 0488f39
Showing
4 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
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