-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
block requests from a Lua script #224
Open
Habbie
wants to merge
18
commits into
dlundquist:master
Choose a base branch
from
PowerDNS:lua-scripting
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on Feb 7, 2017
-
first stab at Lua support in sniproxy. Use ./configure CPPFLAGS='-I/u…
…sr/include/lua5.1' LIBS='-llua5.1' see sniproxy.lua for example. Note that there is no hostname normalisation, so adding a dot or uppercasing a letter would circumvent this simple example.
Configuration menu - View commit details
-
Copy full SHA for 08fb289 - Browse repository at this point
Copy the full SHA 08fb289View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18973af - Browse repository at this point
Copy the full SHA 18973afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 235d37e - Browse repository at this point
Copy the full SHA 235d37eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1779975 - Browse repository at this point
Copy the full SHA 1779975View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b51e16 - Browse repository at this point
Copy the full SHA 1b51e16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 052fb80 - Browse repository at this point
Copy the full SHA 052fb80View commit details -
Configuration menu - View commit details
-
Copy full SHA for e883bc5 - Browse repository at this point
Copy the full SHA e883bc5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67375d4 - Browse repository at this point
Copy the full SHA 67375d4View commit details -
On empty SNI, -2 is stored in the hostname_len field. Since it's an unsigned type (size_t), this leads to an _interesting_ behavior. This was correctly handled in the existing parts of sniproxy, but not in the new Lua code.
Configuration menu - View commit details
-
Copy full SHA for 7c662a4 - Browse repository at this point
Copy the full SHA 7c662a4View commit details -
Detect IPv4-mapped and map to IPv4 based on the binary address
Otherwise we might get in trouble if some platform / version decide to change the textual representation of IPv4-mapped addresses.
Configuration menu - View commit details
-
Copy full SHA for b875701 - Browse repository at this point
Copy the full SHA b875701View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed521c5 - Browse repository at this point
Copy the full SHA ed521c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9884477 - Browse repository at this point
Copy the full SHA 9884477View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e4d3f1 - Browse repository at this point
Copy the full SHA 1e4d3f1View commit details -
make sure addr is a valid nul-terminated string avoid useless strlen call
Configuration menu - View commit details
-
Copy full SHA for 1d309c5 - Browse repository at this point
Copy the full SHA 1d309c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for efafec4 - Browse repository at this point
Copy the full SHA efafec4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f70399 - Browse repository at this point
Copy the full SHA 6f70399View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff5b6ce - Browse repository at this point
Copy the full SHA ff5b6ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for e1be7f4 - Browse repository at this point
Copy the full SHA e1be7f4View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.