Commit 7962798
authored
Merge pull request #726 from jdkandersson/support-ipv6
#726
#### Description
For machine charms, every now and then during testing libjuju will pick an IPv6 address to communicate with the machine. This results in problems with the part of the code changed because it just splits the endpoint to a host and port on the first `:` character which, for an IPv6 address, does not separate the host and port since an IPv6 address has many `:` characters in it. After applying this patch locally, libjuju is able to communicate with the machine again.
*<Fixes: add support for ipv6 connections>*
#### QA Steps
*<Commands / tests / steps to run to verify that the change works: I ran tests for a charm that ocassionaly used ipv6 with these changes and they worked>*
```
tox -e py3 -- tests/unit/...
```
```
tox -e integration -- tests/integration/...
```
All CI tests need to pass.
*<Please note that most likely an additional test will be required by the reviewers for any change that's not a one liner to land.>*
#### Notes & Discussion
*<Additional notes for the reviewers if needed. Please delete section if not applicable.>*1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
682 | 684 | | |
683 | 685 | | |
684 | 686 | | |
| |||
0 commit comments