refactor: merge sock4 and socks5 into one

This commit is contained in:
KujouRinka
2024-01-27 20:45:11 +08:00
parent 1ae0455fd5
commit ff27ee512a
4 changed files with 187 additions and 234 deletions

View File

@@ -44,6 +44,10 @@ func (lsm *LinearStateMachine) Run() (cancelled bool, done bool) {
return false, true
}
func (lsm *LinearStateMachine) AppendSteps(steps ...func() LSMAction) {
lsm.Steps = append(lsm.Steps, steps...)
}
func (lsm *LinearStateMachine) Reset() {
lsm.index = 0
lsm.cancelled = false