aboutsummaryrefslogtreecommitdiff
path: root/network/receivepack/capabilities_defaults.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-26 09:14:59 +0000
committerGravatar Runxi Yu2026-03-26 09:14:59 +0000
commit3d25bda9d5da6814661828adabe8a09f9d01aefb (patch)
treed034e28079333f85e5d7b96d921282eddd4798d6 /network/receivepack/capabilities_defaults.go
parentobject/id: Empty tree (diff)
signatureNo signature
network/receivepack: Rename from receivepack
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()
+}