Skip to content
This repository was archived by the owner on Oct 16, 2021. It is now read-only.

Commit ed1086a

Browse files
committed
e2a conversions for canonical ip
1 parent 4e7bf44 commit ed1086a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/cares_wrap.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,9 @@ static void IsIPv6(const FunctionCallbackInfo<Value>& args) {
12961296
void 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

0 commit comments

Comments
 (0)