Skip to content

Commit c533ab2

Browse files
authored
Merge pull request #179 from samchon/features/hostnames
모든 종류의 hostname 에 대한 접속 허용.
2 parents 8ec5813 + 5adfcab commit c533ab2

File tree

12 files changed

+36
-33
lines changed

12 files changed

+36
-33
lines changed

packages/fake-iamport-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fake-iamport-server",
3-
"version": "5.1.2",
3+
"version": "5.1.4",
44
"description": "Fake iamport server for testing",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",

packages/fake-iamport-server/src/FakeIamportBackend.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ export class FakeIamportBackend {
3131

3232
// DO OPEN
3333
this.application_.enableCors();
34-
await this.application_.listen(FakeIamportConfiguration.API_PORT);
34+
await this.application_.listen(
35+
FakeIamportConfiguration.API_PORT,
36+
"0.0.0.0",
37+
);
3538

3639
//----
3740
// POST-PROCESSES

packages/fake-toss-payments-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fake-toss-payments-server",
3-
"version": "5.1.2",
3+
"version": "5.1.4",
44
"description": "Fake toss-payments server for testing",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",

packages/fake-toss-payments-server/src/FakeTossBackend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class FakeTossBackend {
3131

3232
// DO OPEN
3333
this.application_.enableCors();
34-
await this.application_.listen(FakeTossConfiguration.API_PORT);
34+
await this.application_.listen(FakeTossConfiguration.API_PORT, "0.0.0.0");
3535

3636
//----
3737
// POST-PROCESSES

packages/iamport-server-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iamport-server-api",
3-
"version": "5.1.2",
3+
"version": "5.1.4",
44
"description": "API for Iamport Server",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",

packages/iamport-server-api/swagger.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"info": {
1414
"title": "Iamport API",
1515
"description": "Built by [fake-iamport-server](https://github.com/samchon/payments/tree/master/packages/fake-iamport-server) with [nestia](https://github.com/samchon/nestia)",
16-
"version": "5.1.2",
16+
"version": "5.1.4",
1717
"license": {
1818
"name": "MIT"
1919
}
@@ -529,7 +529,7 @@
529529
"target": {
530530
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts",
531531
"textSpan": {
532-
"start": 447,
532+
"start": 429,
533533
"length": 16
534534
}
535535
}
@@ -630,7 +630,7 @@
630630
"target": {
631631
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts",
632632
"textSpan": {
633-
"start": 447,
633+
"start": 429,
634634
"length": 16
635635
}
636636
}
@@ -831,7 +831,7 @@
831831
"target": {
832832
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts",
833833
"textSpan": {
834-
"start": 447,
834+
"start": 429,
835835
"length": 16
836836
}
837837
}
@@ -1096,7 +1096,7 @@
10961096
"target": {
10971097
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts",
10981098
"textSpan": {
1099-
"start": 2101,
1099+
"start": 2017,
11001100
"length": 16
11011101
}
11021102
}
@@ -1302,7 +1302,7 @@
13021302
"target": {
13031303
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts",
13041304
"textSpan": {
1305-
"start": 2101,
1305+
"start": 2017,
13061306
"length": 16
13071307
}
13081308
}
@@ -1415,7 +1415,7 @@
14151415
"target": {
14161416
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts",
14171417
"textSpan": {
1418-
"start": 2101,
1418+
"start": 2017,
14191419
"length": 16
14201420
}
14211421
}
@@ -1533,7 +1533,7 @@
15331533
"target": {
15341534
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts",
15351535
"textSpan": {
1536-
"start": 2101,
1536+
"start": 2017,
15371537
"length": 16
15381538
}
15391539
}

packages/payment-api/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@samchon/payment-api",
3-
"version": "5.1.2",
3+
"version": "5.1.4",
44
"description": "API for Payment Backend",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",
@@ -35,8 +35,8 @@
3535
},
3636
"dependencies": {
3737
"@nestia/fetcher": "^2.3.9",
38-
"iamport-server-api": "^5.1.2",
39-
"toss-payments-server-api": "^5.1.2",
38+
"iamport-server-api": "^5.1.4",
39+
"toss-payments-server-api": "^5.1.4",
4040
"typia": "^5.2.6"
4141
}
4242
}

packages/payment-api/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
}
88
],
99
"info": {
10-
"version": "5.1.2",
10+
"version": "5.1.4",
1111
"title": "@samchon/payment-backend",
1212
"description": "Payment Backend Server",
1313
"license": {

packages/payment-backend/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@samchon/payment-backend",
3-
"version": "5.1.2",
3+
"version": "5.1.4",
44
"description": "Payment Backend Server",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",
@@ -68,12 +68,12 @@
6868
"cli": "^1.0.1",
6969
"copy-webpack-plugin": "^11.0.0",
7070
"copyfiles": "^2.4.1",
71-
"iamport-server-api": "^5.1.2",
71+
"iamport-server-api": "^5.1.4",
7272
"nestia": "^5.0.3",
7373
"pm2": "^4.5.6",
7474
"rimraf": "^3.0.2",
7575
"sloc": "^0.2.1",
76-
"toss-payments-server-api": "^5.1.2",
76+
"toss-payments-server-api": "^5.1.4",
7777
"ts-loader": "^9.5.0",
7878
"ts-node": "^10.9.1",
7979
"ts-patch": "^3.0.2",
@@ -92,8 +92,8 @@
9292
"bcryptjs": "^2.4.3",
9393
"dotenv": "^16.3.1",
9494
"dotenv-expand": "^10.0.0",
95-
"fake-iamport-server": "^5.1.2",
96-
"fake-toss-payments-server": "^5.1.2",
95+
"fake-iamport-server": "^5.1.4",
96+
"fake-toss-payments-server": "^5.1.4",
9797
"fastify": "^4.24.3",
9898
"git-last-commit": "^1.0.0",
9999
"inquirer": "^8.2.5",
@@ -111,4 +111,4 @@
111111
"LICENSE",
112112
"README.md"
113113
]
114-
}
114+
}

packages/payment-backend/src/PaymentBackend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class PaymentBackend {
4848
this.application_.use(this.middleware.bind(this));
4949

5050
// DO OPEN
51-
await this.application_.listen(PaymentConfiguration.API_PORT());
51+
await this.application_.listen(PaymentConfiguration.API_PORT(), "0.0.0.0");
5252

5353
// CONFIGURE FAKE SERVERS IF TESTING
5454
if (PaymentGlobal.testing === true) {

0 commit comments

Comments
 (0)