export sig constants

This commit is contained in:
idk
2019-03-26 23:19:10 -04:00
parent 4a6b7966f2
commit d09fa462ed
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ func (sam *SAM) Lookup(name string) (I2PAddr, error) {
// setting extra to something else than []string{}.
// This sam3 instance is now a session
func (sam *SAM) newGenericSession(style, id string, keys I2PKeys, options []string, extras []string) (net.Conn, error) {
return sam.newGenericSessionWithSignature(style, id, keys, sig_NONE, options, extras)
return sam.newGenericSessionWithSignature(style, id, keys, Sig_NONE, options, extras)
}
func (sam *SAM) newGenericSessionWithSignature(style, id string, keys I2PKeys, sigType string, options []string, extras []string) (net.Conn, error) {

View File

@ -62,7 +62,7 @@ func (sam *SAM) NewStreamSession(id string, keys I2PKeys, options []string) (*St
if err != nil {
return nil, err
}
return &StreamSession{sam.address, id, conn, keys, time.Duration(600 * time.Second), time.Now(), sig_NONE, "0", "0"}, nil
return &StreamSession{sam.address, id, conn, keys, time.Duration(600 * time.Second), time.Now(), Sig_NONE, "0", "0"}, nil
}
// Creates a new StreamSession with the I2CP- and streaminglib options as