]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/call.go
ACK
[nncp.git] / src / call.go
index de1ce4f6796e12f1490cef36455c69dbc1f03426..295e7c8805c62eaee4cf0d3fd5051e4e86fb2251 100644 (file)
@@ -27,10 +27,9 @@ import (
 
        "github.com/dustin/go-humanize"
        "github.com/gorhill/cronexpr"
+       nncpYggdrasil "go.cypherpunks.ru/nncp/v8/yggdrasil"
 )
 
-const YggdrasilPrefix = "yggdrasil:"
-
 type Call struct {
        Cron           *cronexpr.Expression
        Nice           uint8
@@ -51,6 +50,7 @@ type Call struct {
        AutoTossNoExec bool
        AutoTossNoTrns bool
        AutoTossNoArea bool
+       AutoTossNoACK  bool
 }
 
 func (ctx *Ctx) CallNode(
@@ -86,11 +86,8 @@ func (ctx *Ctx) CallNode(
                        if addr == "" {
                                addr = UCSPITCPClient
                        }
-               } else if strings.HasPrefix(addr, YggdrasilPrefix) {
-                       conn, err = NewYggdrasilConn(
-                               ctx.YggdrasilAliases,
-                               strings.TrimPrefix(addr, YggdrasilPrefix),
-                       )
+               } else if strings.HasPrefix(addr, "yggdrasilc://") {
+                       conn, err = nncpYggdrasil.NewConn(ctx.YggdrasilAliases, addr)
                } else {
                        conn, err = net.Dial("tcp", addr)
                }