Skip to content

Host always set to localhost#145

Merged
tillahoffmann merged 1 commit intomasterfrom
unknown repository
Aug 15, 2021
Merged

Host always set to localhost#145
tillahoffmann merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jun 9, 2021

At the moment using a host other than localhost will fail because generic.py line 26 calls self.get_connection_url() without a host param which defaults to localhost.

This PR corrects this by setting host to None per default. The host will then correctly be assigned in _create_connection_url using get_container_host_ip.

the host will correctly be assigned in `_create_connection_url` using `get_container_host_ip`
@tillahoffmann tillahoffmann merged commit fcbad41 into testcontainers:master Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants