Skip to content

Commit

Permalink
Fix ax25:/// digipeater syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhpedersen committed Apr 26, 2016
1 parent 5ba57e1 commit dcc72ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport/ax25/ax25.go
Expand Up @@ -111,7 +111,7 @@ func (d Dialer) DialURL(url *transport.URL) (net.Conn, error) {

switch url.Scheme {
case "ax25":
return DialAX25Timeout(url.Host, url.User.Username(), url.Target, d.Timeout)
return DialAX25Timeout(url.Host, url.User.Username(), target, d.Timeout)
case "serial-tnc":
//TODO: This is some badly designed legacy stuff. Need to re-think the whole
//serial-tnc scheme. See issue #34.
Expand All @@ -123,7 +123,7 @@ func (d Dialer) DialURL(url *transport.URL) (net.Conn, error) {
return DialKenwood(
url.Host,
url.User.Username(),
url.Target,
target,
NewConfig(baudrate),
nil,
)
Expand Down

0 comments on commit dcc72ad

Please sign in to comment.