mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
change project structure, fix online ip report bug
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package core
|
||||
|
||||
import (
|
||||
"github.com/Yuzuki616/V2bX/api"
|
||||
"github.com/Yuzuki616/V2bX/api/panel"
|
||||
)
|
||||
|
||||
func (p *Core) UpdateRule(tag string, newRuleList []api.DetectRule) error {
|
||||
func (p *Core) UpdateRule(tag string, newRuleList []panel.DetectRule) error {
|
||||
return p.dispatcher.RuleManager.UpdateRule(tag, newRuleList)
|
||||
}
|
||||
|
||||
@@ -13,6 +13,6 @@ func (p *Core) UpdateProtocolRule(tag string, newRuleList []string) error {
|
||||
return p.dispatcher.RuleManager.UpdateProtocolRule(tag, newRuleList)
|
||||
}
|
||||
|
||||
func (p *Core) GetDetectResult(tag string) ([]api.DetectResult, error) {
|
||||
func (p *Core) GetDetectResult(tag string) ([]panel.DetectResult, error) {
|
||||
return p.dispatcher.RuleManager.GetDetectResult(tag)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user