aboutsummaryrefslogtreecommitdiff
path: root/network/receivepack/capabilities_defaults.go
diff options
context:
space:
mode:
Diffstat (limited to 'network/receivepack/capabilities_defaults.go')
-rw-r--r--network/receivepack/capabilities_defaults.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/network/receivepack/capabilities_defaults.go b/network/receivepack/capabilities_defaults.go
new file mode 100644
index 00000000..72c36c30
--- /dev/null
+++ b/network/receivepack/capabilities_defaults.go
@@ -0,0 +1,17 @@
+package receivepack
+
+import (
+ "crypto/rand"
+)
+
+func defaultAgent() string {
+ return "furgit"
+}
+
+func defaultSessionID() string {
+ return "furgit-" + rand.Text()
+}
+
+func defaultPushCertNonce() string {
+ return "furgit-" + rand.Text()
+}