Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: use custom wireguard reverse proxy for dev tunnel#1975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
coadler merged 5 commits intomainfromcolin/wg-dev-tunnel
Jun 10, 2022
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
add docs
  • Loading branch information
@coadler
coadler committedJun 3, 2022
commit72ca611b2cf5b326a9a208f8f3e3c6d5c98ac1fd
6 changes: 6 additions & 0 deletionscoderd/devtunnel/tunnel.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -47,6 +47,7 @@ type configExt struct {
PublicKey device.NoisePublicKey `json:"public_key"`
}

// NewWithConfig calls New with the given config. For documentation, see New.
func NewWithConfig(ctx context.Context, logger slog.Logger, cfg Config) (*Tunnel, error) {
err := startUpdateRoutine(ctx, logger, cfg)
if err != nil {
Expand DownExpand Up@@ -112,6 +113,11 @@ allowed_ip=%s/128`,
}, nil
}

// New creates a tunnel with a public URL and returns a listener for incoming
// connections on that URL. Connections are made over the wireguard protocol.
// Tunnel configuration is cached in the user's config directory. Successive
// calls to New will always use the same URL. If multiple public URLs in
// parallel are required, use NewWithConfig.
func New(ctx context.Context, logger slog.Logger) (*Tunnel, error) {
cfg, err := readOrGenerateConfig()
if err != nil {
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp