Fix local DNS server crash
This commit is contained in:
parent
7cb1cacd89
commit
cc3e2fb8fb
1 changed files with 2 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ import (
|
|||
C "github.com/sagernet/sing-box/constant"
|
||||
"github.com/sagernet/sing-box/service/resolved"
|
||||
"github.com/sagernet/sing-tun"
|
||||
"github.com/sagernet/sing/common"
|
||||
"github.com/sagernet/sing/common/control"
|
||||
E "github.com/sagernet/sing/common/exceptions"
|
||||
"github.com/sagernet/sing/common/logger"
|
||||
|
|
@ -82,7 +83,7 @@ func (t *DBusResolvedResolver) Close() error {
|
|||
}
|
||||
|
||||
func (t *DBusResolvedResolver) Object() any {
|
||||
return t.resoledObject.Load()
|
||||
return common.PtrOrNil(t.resoledObject.Load())
|
||||
}
|
||||
|
||||
func (t *DBusResolvedResolver) Exchange(object any, ctx context.Context, message *mDNS.Msg) (*mDNS.Msg, error) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue