Skip to content

Commit dc29514

Browse files
committed
chore: typo
1 parent 8940bdd commit dc29514

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

component/dialer/dialer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func ListenPacket(ctx context.Context, network, address string, rAddrPort netip.
8484
if cfg.addrReuse {
8585
addrReuseToListenConfig(lc)
8686
}
87-
if DefaultSocketHook != nil { // ignore interfaceName, routingMark when DefaultSocketHook not null (in CFMA)
87+
if DefaultSocketHook != nil { // ignore interfaceName, routingMark when DefaultSocketHook not null (in CMFA)
8888
socketHookToListenConfig(lc)
8989
} else {
9090
if cfg.interfaceName != "" {
@@ -148,7 +148,7 @@ func dialContext(ctx context.Context, network string, destination netip.Addr, po
148148
setMultiPathTCP(dialer)
149149
}
150150

151-
if DefaultSocketHook != nil { // ignore interfaceName, routingMark and tfo when DefaultSocketHook not null (in CFMA)
151+
if DefaultSocketHook != nil { // ignore interfaceName, routingMark and tfo when DefaultSocketHook not null (in CMFA)
152152
socketHookToToDialer(dialer)
153153
} else {
154154
if opt.interfaceName != "" {

component/dialer/socket_hook.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
)
88

99
// SocketControl
10-
// never change type traits because it's used in CFMA
10+
// never change type traits because it's used in CMFA
1111
type SocketControl func(network, address string, conn syscall.RawConn) error
1212

1313
// DefaultSocketHook
14-
// never change type traits because it's used in CFMA
14+
// never change type traits because it's used in CMFA
1515
var DefaultSocketHook SocketControl
1616

1717
func socketHookToToDialer(dialer *net.Dialer) {

component/process/process.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ func FindProcessName(network string, srcIP netip.Addr, srcPort int) (uint32, str
2323
}
2424

2525
// PackageNameResolver
26-
// never change type traits because it's used in CFMA
26+
// never change type traits because it's used in CMFA
2727
type PackageNameResolver func(metadata *C.Metadata) (string, error)
2828

2929
// DefaultPackageNameResolver
30-
// never change type traits because it's used in CFMA
30+
// never change type traits because it's used in CMFA
3131
var DefaultPackageNameResolver PackageNameResolver
3232

3333
func FindPackageName(metadata *C.Metadata) (string, error) {

docs/config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -955,12 +955,12 @@ rule-providers:
955955
# 对于behavior=domain:
956956
# - format=yaml 可以通过“mihomo convert-ruleset domain yaml XXX.yaml XXX.mrs”转换到mrs格式
957957
# - format=text 可以通过“mihomo convert-ruleset domain text XXX.text XXX.mrs”转换到mrs格式
958-
# - XXX.mrs 可以通过"mihomo convert-ruleset domain mrs XXX.mrs XXX.text"转换回text格式(暂不支持转换回ymal格式
958+
# - XXX.mrs 可以通过"mihomo convert-ruleset domain mrs XXX.mrs XXX.text"转换回text格式(暂不支持转换回yaml格式
959959
#
960960
# 对于behavior=ipcidr:
961961
# - format=yaml 可以通过“mihomo convert-ruleset ipcidr yaml XXX.yaml XXX.mrs”转换到mrs格式
962962
# - format=text 可以通过“mihomo convert-ruleset ipcidr text XXX.text XXX.mrs”转换到mrs格式
963-
# - XXX.mrs 可以通过"mihomo convert-ruleset ipcidr mrs XXX.mrs XXX.text"转换回text格式(暂不支持转换回ymal格式
963+
# - XXX.mrs 可以通过"mihomo convert-ruleset ipcidr mrs XXX.mrs XXX.text"转换回text格式(暂不支持转换回yaml格式
964964
#
965965
type: http
966966
url: "url"

listener/http/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func New(addr string, tunnel C.Tunnel, additions ...inbound.Addition) (*Listener
3737
}
3838

3939
// NewWithAuthenticate
40-
// never change type traits because it's used in CFMA
40+
// never change type traits because it's used in CMFA
4141
func NewWithAuthenticate(addr string, tunnel C.Tunnel, authenticate bool, additions ...inbound.Addition) (*Listener, error) {
4242
getAuth := authStore.Authenticator
4343
if !authenticate {

0 commit comments

Comments
 (0)