mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
chore: update doc and change package path
This commit is contained in:
1 parent
b0584be6cc
commit
ed7ee6bcd4
13 files changed
+16
-17
No files matched your search
+1
-1
@@ -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")
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"net"
|
||||
"strings"
|
||||
|
||||
"github.com/nadoo/glider/proxy/ss/cipher/internal/shadowaead"
|
||||
"github.com/nadoo/glider/proxy/ss/cipher/internal/shadowstream"
|
||||
"github.com/nadoo/glider/proxy/ss/cipher/shadowaead"
|
||||
"github.com/nadoo/glider/proxy/ss/cipher/shadowstream"
|
||||
)
|
||||
|
||||
// Cipher interface.
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -25,7 +25,6 @@ type writer struct {
|
||||
io.Writer
|
||||
cipher.AEAD
|
||||
nonce [32]byte
|
||||
buf []byte
|
||||
}
|
||||
|
||||
// NewWriter wraps an io.Writer with AEAD encryption.
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user