mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 14:45:07 +03:00
Access NSLog through Cgo for iOS NetworkExtension logging
This commit is contained in:
parent
6bbd8c1b30
commit
87362a21e2
4 changed files with 32 additions and 3 deletions
|
@ -24,7 +24,8 @@ import (
|
|||
// therefore we use the "dummy" TUN interface instead.
|
||||
|
||||
func (c *Core) StartAutoconfigure() error {
|
||||
logger := log.New(os.Stdout, "", 0)
|
||||
mobilelog := MobileLogger{}
|
||||
logger := log.New(mobilelog, "", 0)
|
||||
nc := config.GenerateConfig(true)
|
||||
nc.IfName = "dummy"
|
||||
nc.AdminListen = "tcp://localhost:9001"
|
||||
|
@ -43,7 +44,8 @@ func (c *Core) StartAutoconfigure() error {
|
|||
}
|
||||
|
||||
func (c *Core) StartJSON(configjson []byte) error {
|
||||
logger := log.New(os.Stdout, "", 0)
|
||||
mobilelog := MobileLogger{}
|
||||
logger := log.New(mobilelog, "", 0)
|
||||
nc := config.GenerateConfig(false)
|
||||
var dat map[string]interface{}
|
||||
if err := hjson.Unmarshal(configjson, &dat); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue