Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
27e92701
Unverified
Commit
27e92701
authored
May 21, 2025
by
jmswen
Committed by
GitHub
May 22, 2025
Browse files
fix: Enable Dynamo HTTP servers to run on IPv6-only hosts (#1166)
parent
f992a6a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
lib/runtime/src/pipeline/network/tcp/server.rs
lib/runtime/src/pipeline/network/tcp/server.rs
+11
-2
No files found.
lib/runtime/src/pipeline/network/tcp/server.rs
View file @
27e92701
...
...
@@ -26,7 +26,7 @@ use tokio::sync::Mutex;
use
bytes
::
Bytes
;
use
derive_builder
::
Builder
;
use
futures
::{
SinkExt
,
StreamExt
};
use
local_ip_address
::{
list_afinet_netifas
,
local_ip
};
use
local_ip_address
::{
list_afinet_netifas
,
local_ip
,
local_ipv6
,
Error
};
use
serde
::{
Deserialize
,
Serialize
};
use
tokio
::{
io
::
AsyncWriteExt
,
...
...
@@ -136,7 +136,16 @@ impl TcpStreamServer {
)))
?
.to_string
()
}
None
=>
local_ip
()
.unwrap
()
.to_string
(),
None
=>
local_ip
()
.or_else
(|
err
|
match
err
{
Error
::
LocalIpAddressNotFound
=>
{
// Fall back to IPv6 if no IPv4 addresses are found
local_ipv6
()
}
_
=>
Err
(
err
),
})
.unwrap
()
.to_string
(),
};
let
state
=
Arc
::
new
(
Mutex
::
new
(
State
::
default
()));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment