Skip to content
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

Replace source and dest parameters #8

Merged
merged 1 commit into from
Jun 17, 2019

Conversation

alexjfisher
Copy link
Member

Split source parameter into source_socket_file, source_host and
source_port parameters. Rename dest parameter to target_
parameters.

By splitting the parameters, it's much easier to do proper input
validation and build the socket parameters passed to the binary
correctly. For instance, IP addresses are supposed to be surrounded by
square brackets but hostnames should not.

See https://github.com/Tarsnap/spiped/blob/5c13832aeecdad8a655dadcf5413cc504ad99e49/libcperciva/util/sock.c#L253

Replace erb with epp template.

Split `source` parameter into `source_socket_file`, `source_host` and
`source_port` parameters.  Rename `dest` parameter to `target_`
parameters.

By splitting the parameters, it's much easier to do proper input
validation and build the socket parameters passed to the binary
correctly.  For instance, IP addresses are supposed to be surrounded by
square brackets but hostnames should not.

See https://github.com/Tarsnap/spiped/blob/5c13832aeecdad8a655dadcf5413cc504ad99e49/libcperciva/util/sock.c#L253

Replace erb with epp template.
@alexjfisher alexjfisher changed the title WIP: Replace source and dest parameters Replace source and dest parameters Jun 17, 2019
@alexjfisher alexjfisher merged commit b57abbe into voxpupuli:master Jun 17, 2019
@alexjfisher alexjfisher deleted the source_target branch June 17, 2019 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants