-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(service): support host IP in brackets for
ports
short syntax
Extracted bracket striping logic from `extra_hosts` deserialization into its own function: `compose_spec::service::strip_brackets()`. Used `strip_brackets()` for host IP parsing in `impl FromStr for compose_spec::service::ports::ShortPort`. Added test `compose_spec::service::ports::tests::short_port::host_ip_brackets()` to ensure the fix is working as expected. Fixes: #24
- Loading branch information
1 parent
2c50d2c
commit 2bd181f
Showing
4 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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