mirror of
https://github.com/net-byte/vtun
synced 2024-03-14 10:50:03 +08:00
fix: Repair variable name changes issue.
This commit is contained in:
parent
007cfa7a4f
commit
0ab410d646
@ -20,8 +20,8 @@ import (
|
|||||||
// StartServer starts the dtls server
|
// StartServer starts the dtls server
|
||||||
func StartServer(iFace *water.Interface, config config.Config) {
|
func StartServer(iFace *water.Interface, config config.Config) {
|
||||||
log.Printf("vtun dtls server started on %v", config.LocalAddr)
|
log.Printf("vtun dtls server started on %v", config.LocalAddr)
|
||||||
_ctx, cancel = context.WithCancel(context.Background())
|
_ctx, _cancel = context.WithCancel(context.Background())
|
||||||
defer cancel()
|
defer _cancel()
|
||||||
var tlsConfig *dtls.Config
|
var tlsConfig *dtls.Config
|
||||||
if config.PSKMode {
|
if config.PSKMode {
|
||||||
tlsConfig = &dtls.Config{
|
tlsConfig = &dtls.Config{
|
||||||
|
Loading…
Reference in New Issue
Block a user