Skip to content

Commit ad52af3

Browse files
mapleafgoclaude
andcommitted
fix: OpenTun debug 日志避免 nil options panic
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent abefaf7 commit ad52af3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/platform.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (p *PlatformIO) OpenTun(options libbox.TunOptions) (int32, error) {
163163
p.mu.Unlock()
164164

165165
if fd != 0 {
166-
slog.Debug("[OpenTun] returning fd", "fd", fd, "mtu", options.GetMTU(), "autoRoute", options.GetAutoRoute())
166+
slog.Debug("[OpenTun] returning fd", "fd", fd)
167167
return fd, nil
168168
}
169169
slog.Warn("[OpenTun] no TUN fd available; mobile platforms must call SetTunFd before starting/reloading")

0 commit comments

Comments
 (0)