Skip to content

Commit

Permalink
Add doc comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Jun 14, 2024
1 parent 1952036 commit 7212265
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/outline-ss-server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ func validateListener(u *url.URL) error {
return nil
}

// newListener creates a new listener from a URL-style address specification.
//
// Example addresses:
//
// tcp4://127.0.0.1:8000
// udp://127.0.0.1:9000
func newListener(addr string) (io.Closer, error) {
u, err := url.Parse(addr)
if err != nil {
Expand Down

0 comments on commit 7212265

Please sign in to comment.