mirror of
https://github.com/coder/code-server.git
synced 2025-07-31 05:54:15 +08:00
Include protocol on printed address
This makes it clickable from the terminal.
This commit is contained in:
@ -141,7 +141,7 @@ const main = async (args: DefaultedArgs): Promise<void> => {
|
||||
|
||||
if (args.link) {
|
||||
try {
|
||||
await coderCloudBind(serverAddress, args.link.value)
|
||||
await coderCloudBind(serverAddress.replace(/^https?:\/\//, ""), args.link.value)
|
||||
logger.info(" - Connected to cloud agent")
|
||||
} catch (err) {
|
||||
logger.error(err.message)
|
||||
|
Reference in New Issue
Block a user