We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3d02cc commit 7ac3866Copy full SHA for 7ac3866
dataplane/src/main.rs
@@ -156,15 +156,9 @@ fn main() {
156
let pipeline_factory = setup.pipeline;
157
158
/* start management */
159
- let hostname = nix::unistd::gethostname()
160
- .expect("Failed to get hostname")
161
- .to_str()
162
- .expect("hostname is not valid unicode")
163
- .to_string();
164
-
165
start_mgmt(MgmtParams {
166
grpc_addr,
167
- hostname,
+ hostname: get_gw_name().unwrap_or_else(|| unreachable!()).to_owned(),
168
processor_params: ConfigProcessorParams {
169
router_ctl: setup.router.get_ctl_tx(),
170
vpcmapw: setup.vpcmapw,
0 commit comments