We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ccbd8a7 + 4457e16 commit 0228dc8Copy full SHA for 0228dc8
scavenger-collector/src/main/kotlin/com/navercorp/scavenger/controller/AgentController.kt
@@ -41,10 +41,8 @@ class AgentController(
41
@GetMapping(V5_INIT_CONFIG, produces = [MediaType.APPLICATION_JSON_VALUE])
42
fun grpcInitConfig(@RequestParam licenseKey: String, request: HttpServletRequest): InitConfigResponse {
43
logger.info { "init config requested from grpc client ${request.remoteAddr} with licenseKey: $licenseKey" }
44
- val splitUrl = request.requestURL.split("/")
45
- val collectorUrl = "${splitUrl[0]}//${splitUrl[2]}"
46
return InitConfigResponse.newBuilder()
47
- .setCollectorUrl(collectorUrl)
+ .setCollectorUrl(request.requestURL.split("/")[2])
48
.build()
49
}
50
0 commit comments