We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94b0afc commit 3376218Copy full SHA for 3376218
src/Instance.cxx
@@ -133,8 +133,8 @@ Instance::AddListener(const ListenerConfig &config)
133
/* ask the kernel for the effective address via
134
getsockname(), because it may have changed, e.g. if
135
the kernel has selected a port for us */
136
- const auto local_address = listener.GetSocket().GetLocalAddress();
137
- if (local_address.IsDefined()) {
+ if (const auto local_address = listener.GetSocket().GetLocalAddress();
+ local_address.IsDefined()) {
138
const char *const interface = config.interface.empty()
139
? nullptr
140
: config.interface.c_str();
0 commit comments