Better comment
This commit is contained in:
parent
7a55db3a5f
commit
ec677f6960
3
add.go
3
add.go
@ -143,7 +143,8 @@ func getIfName(conf *DsnetConfig) string {
|
|||||||
return fmt.Sprintf("wg%d", wgifSeed%999)
|
return fmt.Sprintf("wg%d", wgifSeed%999)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetWGPeerTemplate returns a template file
|
// GetWGPeerTemplate returns a template string to be used when
|
||||||
|
// configuring a peer
|
||||||
func GetWGPeerTemplate(peerConfType PeerConfType, peer *PeerConfig, conf *DsnetConfig) (*bytes.Buffer, error) {
|
func GetWGPeerTemplate(peerConfType PeerConfType, peer *PeerConfig, conf *DsnetConfig) (*bytes.Buffer, error) {
|
||||||
peerConf := getPeerConfTplString(peerConfType)
|
peerConf := getPeerConfTplString(peerConfType)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user