@@ -45,9 +45,9 @@ export class DockerService {
45
45
await this . waitForRpc ( chain , options ?. rpcWaitTimeout ) ;
46
46
await this . waitForLcd ( chain , options ?. lcdWaitTimeout ) ;
47
47
48
- const rpcUrl = `http://localhost /${ chain } -rpc` ;
49
- const lcdUrl = `http://localhost /${ chain } -lcd` ;
50
- const wsUrl = `ws://localhost /${ chain } -rpc/websocket` ;
48
+ const rpcUrl = `http://127.0.0.1 /${ chain } -rpc` ;
49
+ const lcdUrl = `http://127.0.0.1 /${ chain } -lcd` ;
50
+ const wsUrl = `ws://127.0.0.1 /${ chain } -rpc/websocket` ;
51
51
52
52
logger . log ( `RPC server for ${ chain } is started at ${ rpcUrl } ` ) ;
53
53
logger . log ( `LCD server for ${ chain } is started at ${ lcdUrl } ` ) ;
@@ -75,7 +75,7 @@ export class DockerService {
75
75
76
76
logger . log ( "Starting traefik container..." ) ;
77
77
await compose . upOne ( "traefik" , config ) ;
78
- logger . log ( "Traefik started at http://localhost :8080" ) ;
78
+ logger . log ( "Traefik started at http://127.0.0.1 :8080" ) ;
79
79
}
80
80
81
81
async stopAll ( ) {
@@ -122,7 +122,7 @@ export class DockerService {
122
122
async waitForRpc ( chain : CosmosChain , timeout = 120000 ) : Promise < void > {
123
123
const start = Date . now ( ) ;
124
124
const interval = 3000 ;
125
- const url = `http://localhost /${ chain } -rpc/health` ;
125
+ const url = `http://127.0.0.1 /${ chain } -rpc/health` ;
126
126
let status = 0 ;
127
127
while ( Date . now ( ) - start < timeout ) {
128
128
try {
@@ -144,7 +144,7 @@ export class DockerService {
144
144
const testUrl = "cosmos/base/tendermint/v1beta1/node_info" ;
145
145
const start = Date . now ( ) ;
146
146
const interval = 3000 ;
147
- const url = `http://localhost /${ chain } -lcd/${ testUrl } ` ;
147
+ const url = `http://127.0.0.1 /${ chain } -lcd/${ testUrl } ` ;
148
148
let result , network ;
149
149
while ( Date . now ( ) - start < timeout ) {
150
150
try {
0 commit comments