chore: update doc and change package path

This commit is contained in:
nadoo committed 2022-04-05 09:30:04 +08:00
1 parent b0584be6cc
commit ed7ee6bcd4
13 files changed
+16 -17

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ func RegisterServer(name string, c ServerCreator) {
}
// ServerFromURL calls the registered creator to create proxy servers.
// dialer is the default upstream dialer so cannot be nil, we can use Default when calling this function.
// proxy can not be nil.
func ServerFromURL(s string, proxy Proxy) (Server, error) {
if proxy == nil {
return nil, errors.New("ServerFromURL: dialer cannot be nil")