Skip to content

Commit 112574a

Browse files
authored
Merge pull request #3290 from Kilo-Org/christiaan/fix-local-backend
Fix hostname of Kilo URL being ignored
2 parents dd48ba4 + a6ab6c0 commit 112574a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/types/src/kilocode/kilocode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ export function getKiloUrlFromToken(targetUrl: string, kilocodeToken?: string):
7777
const baseUrl = getKiloBaseUriFromToken(kilocodeToken)
7878
const target = new URL(targetUrl)
7979

80-
const { protocol, port } = new URL(baseUrl)
81-
Object.assign(target, { protocol, port })
80+
const { protocol, host } = new URL(baseUrl)
81+
Object.assign(target, { protocol, host })
8282

8383
return target.toString()
8484
}

0 commit comments

Comments
 (0)