Update release config

This commit is contained in:
世界
2022-08-21 13:03:19 +08:00
parent 7613b8dbfe
commit b1b1ab5350
3 changed files with 36 additions and 6 deletions

19
common/debugio/print.go Normal file
View File

@@ -0,0 +1,19 @@
package debugio
import (
"fmt"
"reflect"
"github.com/sagernet/sing/common"
)
func PrintUpstream(obj any) {
for obj != nil {
fmt.Println(reflect.TypeOf(obj))
if u, ok := obj.(common.WithUpstream); !ok {
break
} else {
obj = u.Upstream()
}
}
}