This repository was archived by the owner on Oct 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1296,6 +1296,9 @@ static void IsIPv6(const FunctionCallbackInfo<Value>& args) {
12961296void CanonicalizeIP (const FunctionCallbackInfo<Value>& args) {
12971297 v8::Isolate* isolate = args.GetIsolate ();
12981298 node::Utf8Value ip (isolate, args[0 ]);
1299+ #ifdef __MVS__
1300+ __a2e_s (*ip);
1301+ #endif
12991302 char address_buffer[sizeof (struct in6_addr )];
13001303 char canonical_ip[INET6_ADDRSTRLEN ];
13011304
@@ -1311,6 +1314,9 @@ void CanonicalizeIP(const FunctionCallbackInfo<Value>& args) {
13111314 sizeof (canonical_ip));
13121315 CHECK_EQ (err, 0 );
13131316
1317+ #ifdef __MVS__
1318+ __e2a_s (canonical_ip);
1319+ #endif
13141320 args.GetReturnValue ().Set (String::NewFromUtf8 (isolate, canonical_ip));
13151321}
13161322
You can’t perform that action at this time.
0 commit comments