aboutsummaryrefslogtreecommitdiff
path: root/examples/chat/client.rs
diff options
context:
space:
mode:
authorGilles Henaux <gill.henaux@gmail.com>2023-02-20 21:55:35 +0100
committerGitHub <noreply@github.com>2023-02-20 21:55:35 +0100
commitb3b926fb27012bf5f975efd3cd80dab0c65bda2e (patch)
tree38a9eeee0ad07b8ee6e970b524133b116e7bb767 /examples/chat/client.rs
parent81527b24060ab73f5bdaad252a2d62fd42f36dd7 (diff)
parentc77e90c7b322b8ada71590d938150579b76431d5 (diff)
Merge pull request #14 from Henauxg/ipv6-handling
[client & server] Fix IPv6 handling
Diffstat (limited to 'examples/chat/client.rs')
-rw-r--r--examples/chat/client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/chat/client.rs b/examples/chat/client.rs
index 6cb25e4..fae4976 100644
--- a/examples/chat/client.rs
+++ b/examples/chat/client.rs
@@ -120,7 +120,7 @@ fn start_terminal_listener(mut commands: Commands) {
fn start_connection(mut client: ResMut<Client>) {
client
.open_connection(
- ConnectionConfiguration::new("127.0.0.1".to_string(), 6000, "0.0.0.0".to_string(), 0),
+ ConnectionConfiguration::from_strings("127.0.0.1:6000", "0.0.0.0:0").unwrap(),
CertificateVerificationMode::SkipVerification,
)
.unwrap();