File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -666,10 +666,16 @@ namespace ccf
666
666
return ;
667
667
}
668
668
669
- const auto listen_interface =
670
- ctx->get_session_context ()->interface_id .value_or (
671
- PRIMARY_RPC_INTERFACE);
672
- const auto redirections = get_redirections_config (listen_interface);
669
+ std::optional<ccf::NodeInfoNetwork_v2::NetInterface::Redirections>
670
+ redirections = std::nullopt;
671
+
672
+ // If there's no interface ID, this is already forwarded or otherwise
673
+ // special - don't try to redirect it
674
+ if (ctx->get_session_context ()->interface_id .has_value ())
675
+ {
676
+ redirections = get_redirections_config (
677
+ ctx->get_session_context ()->interface_id .value ());
678
+ }
673
679
674
680
// If a redirections config was specified, then redirections are used
675
681
// and no forwarding is done
You can’t perform that action at this time.
0 commit comments