We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c83d44 commit a059fc6Copy full SHA for a059fc6
1 file changed
src/AppWrapper.h
@@ -750,7 +750,12 @@ void uWS_App_adoptSocket(const FunctionCallbackInfo<Value> &args) {
750
751
int32_t fd = args[0]->Int32Value(isolate->GetCurrentContext()).ToChecked();
752
753
- app->adoptSocket(fd);
+ NativeString ip(isolate, args[1]);
754
+ if (ip.isInvalid(args)) {
755
+ return;
756
+ }
757
+
758
+ app->adoptSocket(fd, ip.getString());
759
760
args.GetReturnValue().Set(args.This());
761
}
0 commit comments