Finished sessions, only datagrams left

This commit is contained in:
Willie Koomson
2018-03-11 11:52:57 -04:00
parent c1aab76710
commit d9ca45d983
9 changed files with 406 additions and 51 deletions

View File

@ -1,9 +1,7 @@
package go_i2cp
import (
"crypto"
"errors"
"github.com/cryptix/go/crypt"
"math/big"
"os"
"strings"
@ -86,7 +84,7 @@ func NewDestinationFromBase64(base64 string) (dest Destination, err error) {
return NewDestinationFromMessage(&decoded)
}
func NewDestinationFromFile(file os.File) (dest Destination, err error) {
func NewDestinationFromFile(file *os.File) (dest Destination, err error) {
var stream Stream
stream.loadFile(file)
return NewDestinationFromStream(&stream)