mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 20:34:02 +03:00
Integrate obfuscation package
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
package dc
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/9seconds/mtg/v2/mtglib/internal/obfuscation"
|
||||
)
|
||||
|
||||
type Addr struct {
|
||||
Network string
|
||||
Address string
|
||||
Network string
|
||||
Address string
|
||||
Obfuscator obfuscation.Obfuscator
|
||||
}
|
||||
|
||||
func (d Addr) String() string {
|
||||
return d.Address
|
||||
return fmt.Sprintf("addr=%s, secret=%v", d.Address, d.Obfuscator.Secret)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user