This repository has been archived on 2025-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Uftp/internal/server/options.go
2023-12-11 12:04:20 +01:00

23 lines
385 B
Go

package server
type Options struct {
Address string
Datapath string
LoadPrivkey bool
PrivKeyPath string
PubKeyPath string
SavePubKey bool
SavePrivKey bool
}
func NewDefaultOptions() *Options {
return &Options{
Address: "0.0.0.0",
Datapath: "./testFiles/",
LoadPrivkey: false,
SavePrivKey: false,
SavePubKey: true,
PubKeyPath: "pubkey.pem",
}
}