Skip to content

Commit

Permalink
bind: use code tag in syntax examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatczuk committed May 21, 2024
1 parent 9e5f099 commit 0eebfbc
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 42 deletions.
12 changes: 6 additions & 6 deletions bind/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ func PAC(fs *pflag.FlagSet, pac **url.URL) {
"<br><br>"+
"Syntax:"+
"<ul>"+
"<li>File: /path/to/file.pac"+
"<li>URL: http://example.com/proxy.pac"+
"<li>Embed: data:base64,<base64 encoded data>"+
"<li>Stdin: -"+
"<li>File: <code>/path/to/file.pac</code>"+
"<li>URL: <code>http://example.com/proxy.pac</code>"+
"<li>Embed: <code>data:base64,<base64 encoded data></code>"+
"<li>Stdin: <code>-</code>"+
"</ul>")
}

Expand Down Expand Up @@ -161,8 +161,8 @@ func DirectDomains(fs *pflag.FlagSet, cfg *[]ruleset.RegexpListItem) {
const pathOrBase64Syntax = "<br><br>" +
"Syntax:" +
"<ul>" +
"<li>File: /path/to/file.pac" +
"<li>Embed: data:base64,<base64 encoded data>" +
"<li>File: <code>/path/to/file.pac</code>" +
"<li>Embed: <code>data:base64,<base64 encoded data></code>" +
"</ul>"

func MITMConfig(fs *pflag.FlagSet, mitm *bool, cfg *forwarder.MITMConfig) {
Expand Down
12 changes: 6 additions & 6 deletions docs/content/cli/forwarder_pac_eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ Proxy Auto-Configuration file to use for upstream proxy selection.

Syntax:

- File: /path/to/file.pac
- URL: http://example.com/proxy.pac
- Embed: data:base64,<base64 encoded data>
- Stdin: -
- File: `/path/to/file.pac`
- URL: `http://example.com/proxy.pac`
- Embed: `data:base64,<base64 encoded data>`
- Stdin: `-`

## DNS options

Expand Down Expand Up @@ -88,8 +88,8 @@ Use this flag multiple times to specify multiple CA certificate files.

Syntax:

- File: /path/to/file.pac
- Embed: data:base64,<base64 encoded data>
- File: `/path/to/file.pac`
- Embed: `data:base64,<base64 encoded data>`

### `--http-dial-timeout` {#http-dial-timeout}

Expand Down
20 changes: 10 additions & 10 deletions docs/content/cli/forwarder_pac_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ TLS certificate to use if the server protocol is https or h2.

Syntax:

- File: /path/to/file.pac
- Embed: data:base64,<base64 encoded data>
- File: `/path/to/file.pac`
- Embed: `data:base64,<base64 encoded data>`

### `--tls-handshake-timeout` {#tls-handshake-timeout}

Expand All @@ -112,8 +112,8 @@ TLS private key to use if the server protocol is https or h2.

Syntax:

- File: /path/to/file.pac
- Embed: data:base64,<base64 encoded data>
- File: `/path/to/file.pac`
- Embed: `data:base64,<base64 encoded data>`

## Proxy options

Expand All @@ -128,10 +128,10 @@ Proxy Auto-Configuration file to use for upstream proxy selection.

Syntax:

- File: /path/to/file.pac
- URL: http://example.com/proxy.pac
- Embed: data:base64,<base64 encoded data>
- Stdin: -
- File: `/path/to/file.pac`
- URL: `http://example.com/proxy.pac`
- Embed: `data:base64,<base64 encoded data>`
- Stdin: `-`

## DNS options

Expand Down Expand Up @@ -176,8 +176,8 @@ Use this flag multiple times to specify multiple CA certificate files.

Syntax:

- File: /path/to/file.pac
- Embed: data:base64,<base64 encoded data>
- File: `/path/to/file.pac`
- Embed: `data:base64,<base64 encoded data>`

### `--http-dial-timeout` {#http-dial-timeout}

Expand Down
24 changes: 12 additions & 12 deletions docs/content/cli/forwarder_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ TLS certificate to use if the server protocol is https or h2.

Syntax:

- File: /path/to/file.pac
- Embed: data:base64,<base64 encoded data>
- File: `/path/to/file.pac`
- Embed: `data:base64,<base64 encoded data>`

### `--tls-handshake-timeout` {#tls-handshake-timeout}

Expand All @@ -137,8 +137,8 @@ TLS private key to use if the server protocol is https or h2.

Syntax:

- File: /path/to/file.pac
- Embed: data:base64,<base64 encoded data>
- File: `/path/to/file.pac`
- Embed: `data:base64,<base64 encoded data>`

### `--write-limit` {#write-limit}

Expand Down Expand Up @@ -200,10 +200,10 @@ Proxy Auto-Configuration file to use for upstream proxy selection.

Syntax:

- File: /path/to/file.pac
- URL: http://example.com/proxy.pac
- Embed: data:base64,<base64 encoded data>
- Stdin: -
- File: `/path/to/file.pac`
- URL: `http://example.com/proxy.pac`
- Embed: `data:base64,<base64 encoded data>`
- Stdin: `-`

### `-x, --proxy` {#proxy}

Expand Down Expand Up @@ -271,8 +271,8 @@ See the documentation for the --mitm flag for more details.

Syntax:

- File: /path/to/file.pac
- Embed: data:base64,<base64 encoded data>
- File: `/path/to/file.pac`
- Embed: `data:base64,<base64 encoded data>`

### `--mitm-cakey-file` {#mitm-cakey-file}

Expand Down Expand Up @@ -348,8 +348,8 @@ Use this flag multiple times to specify multiple CA certificate files.

Syntax:

- File: /path/to/file.pac
- Embed: data:base64,<base64 encoded data>
- File: `/path/to/file.pac`
- Embed: `data:base64,<base64 encoded data>`

### `--http-dial-timeout` {#http-dial-timeout}

Expand Down
8 changes: 4 additions & 4 deletions docs/content/cli/forwarder_test_grpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ TLS certificate to use if the server protocol is https or h2.

Syntax:

- File: /path/to/file.pac
- Embed: data:base64,<base64 encoded data>
- File: `/path/to/file.pac`
- Embed: `data:base64,<base64 encoded data>`

### `--tls-handshake-timeout` {#tls-handshake-timeout}

Expand All @@ -65,8 +65,8 @@ TLS private key to use if the server protocol is https or h2.

Syntax:

- File: /path/to/file.pac
- Embed: data:base64,<base64 encoded data>
- File: `/path/to/file.pac`
- Embed: `data:base64,<base64 encoded data>`

## Logging options

Expand Down
8 changes: 4 additions & 4 deletions docs/content/cli/forwarder_test_httpbin.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ TLS certificate to use if the server protocol is https or h2.

Syntax:

- File: /path/to/file.pac
- Embed: data:base64,<base64 encoded data>
- File: `/path/to/file.pac`
- Embed: `data:base64,<base64 encoded data>`

### `--tls-handshake-timeout` {#tls-handshake-timeout}

Expand All @@ -88,8 +88,8 @@ TLS private key to use if the server protocol is https or h2.

Syntax:

- File: /path/to/file.pac
- Embed: data:base64,<base64 encoded data>
- File: `/path/to/file.pac`
- Embed: `data:base64,<base64 encoded data>`

## API server options

Expand Down

0 comments on commit 0eebfbc

Please sign in to comment.