Skip to content

Commit 113b3fe

Browse files
committed
fix: actually use -socketevents
6007 follow-up
1 parent 3b0323a commit 113b3fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/init.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2516,9 +2516,11 @@ bool AppInitMain(const CoreContext& context, NodeContext& node, interfaces::Bloc
25162516
}
25172517

25182518
std::string sem_str = args.GetArg("-socketevents", DEFAULT_SOCKETEVENTS);
2519-
if (SEMFromString(sem_str) == SocketEventsMode::Unknown) {
2519+
const auto sem = SEMFromString(sem_str);
2520+
if (sem == SocketEventsMode::Unknown) {
25202521
return InitError(strprintf(_("Invalid -socketevents ('%s') specified. Only these modes are supported: %s"), sem_str, GetSupportedSocketEventsStr()));
25212522
}
2523+
connOptions.socketEventsMode = sem;
25222524

25232525
const std::string& i2psam_arg = args.GetArg("-i2psam", "");
25242526
if (!i2psam_arg.empty()) {

0 commit comments

Comments
 (0)