File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
public-api-server/pkg/server Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -347,21 +347,21 @@ type builtinServices struct {
347
347
func newBuiltinServices (server * Server ) * builtinServices {
348
348
healthAddr := fmt .Sprintf (":%d" , BuiltinHealthPort )
349
349
if server .options .underTest {
350
- healthAddr = "localhost :0"
350
+ healthAddr = ":0"
351
351
}
352
352
353
353
return & builtinServices {
354
354
underTest : server .options .underTest ,
355
355
Debug : & http.Server {
356
- Addr : fmt .Sprintf ("localhost :%d" , BuiltinDebugPort ),
356
+ Addr : fmt .Sprintf (":%d" , BuiltinDebugPort ),
357
357
Handler : pprof .Handler (),
358
358
},
359
359
Health : & http.Server {
360
360
Addr : healthAddr ,
361
361
Handler : server .healthEndpoint (),
362
362
},
363
363
Metrics : & http.Server {
364
- Addr : fmt .Sprintf ("localhost :%d" , BuiltinMetricsPort ),
364
+ Addr : fmt .Sprintf (":%d" , BuiltinMetricsPort ),
365
365
Handler : server .metricsEndpoint (),
366
366
},
367
367
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ func Start(logger *logrus.Entry, cfg Config) error {
20
20
21
21
srv , err := baseserver .New ("public_api_server" ,
22
22
baseserver .WithLogger (logger ),
23
- baseserver .WithGRPC (& baseserver.ServerConfiguration {Address : fmt .Sprintf ("localhost :%d" , cfg .GRPCPort )}),
23
+ baseserver .WithGRPC (& baseserver.ServerConfiguration {Address : fmt .Sprintf (":%d" , cfg .GRPCPort )}),
24
24
baseserver .WithMetricsRegistry (registry ),
25
25
)
26
26
if err != nil {
You can’t perform that action at this time.
0 commit comments