Skip to content

Commit

Permalink
Support URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Gario committed Aug 13, 2024
1 parent e4afb79 commit f736881
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/start-proxy-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/start-proxy-action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/start-proxy-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ export type CertificateAuthority = {

export type Credential = {
type: string;
host: string;
host?: string;
url?: string;
username?: string;
password?: string;
token?: string;
};

function CredentialToStr(c: Credential): string {
return `Type: ${c.type}; Host: ${c.host}; Username: ${c.username}; Password: ${c.password !== undefined}; Token: ${c.token !== undefined}`
return `Type: ${c.type}; Host: ${c.host}; Url: ${c.url} Username: ${c.username}; Password: ${c.password !== undefined}; Token: ${c.token !== undefined}`
}

export type BasicAuthCredentials = {
Expand Down

0 comments on commit f736881

Please sign in to comment.