We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 638267b commit c1e0e89Copy full SHA for c1e0e89
1 file changed
src/AppWrapper.h
@@ -758,7 +758,12 @@ void uWS_App_adoptSocket(const FunctionCallbackInfo<Value> &args) {
758
759
int32_t fd = args[0]->Int32Value(isolate->GetCurrentContext()).ToChecked();
760
761
- app->adoptSocket(fd);
+ NativeString ip(isolate, args[1]);
762
+ if (ip.isInvalid(args)) {
763
+ return;
764
+ }
765
+
766
+ app->adoptSocket(fd, ip.getString());
767
768
args.GetReturnValue().Set(args.This());
769
}
0 commit comments