You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
547 B
Go
27 lines
547 B
Go
package obfssh
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// Conf keeps the configure of server or client
|
|
type Conf struct {
|
|
// ObfsMethod is the encrpt method
|
|
ObfsMethod string
|
|
|
|
// ObfsKey is key for encrypt
|
|
ObfsKey string
|
|
|
|
// Timeout is the socket timeout on read/write
|
|
Timeout time.Duration
|
|
|
|
// DisableObfsAfterHandShake disable the obfs encryption after ssh handshake done
|
|
DisableObfsAfterHandshake bool
|
|
|
|
// KeepAliveInterval the keep alive interval
|
|
KeepAliveInterval time.Duration
|
|
|
|
// KeepAliveMax the max times of keep alive error
|
|
KeepAliveMax int
|
|
}
|