fix: Repair variable name changes issue.

This commit is contained in:
NNdroid 2023-09-12 16:47:58 +08:00
parent 007cfa7a4f
commit 0ab410d646

View File

@ -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{