mirror of
https://github.com/vbatts/imgsrv.git
synced 2025-07-06 00:58:30 +00:00
parent
84e5af9fc2
commit
51ff306fd9
3 changed files with 9 additions and 6 deletions
|
@ -6,7 +6,6 @@ import (
|
|||
"labix.org/v2/mgo"
|
||||
"labix.org/v2/mgo/bson"
|
||||
"log"
|
||||
"math/rand"
|
||||
"mime"
|
||||
"net/http"
|
||||
"os"
|
||||
|
@ -143,7 +142,7 @@ func routeFilesPOST(w http.ResponseWriter, r *http.Request) {
|
|||
var filename string
|
||||
info := Info{
|
||||
Ip: r.RemoteAddr,
|
||||
Random: rand.Int63(),
|
||||
Random: Rand64(),
|
||||
TimeStamp: time.Now(),
|
||||
}
|
||||
|
||||
|
@ -434,7 +433,7 @@ func routeGetFromUrl(w http.ResponseWriter, r *http.Request) {
|
|||
if (r.Method == "POST") {
|
||||
info := Info{
|
||||
Ip: r.RemoteAddr,
|
||||
Random: rand.Int63(),
|
||||
Random: Rand64(),
|
||||
TimeStamp: time.Now(),
|
||||
}
|
||||
log.Println(info)
|
||||
|
@ -513,7 +512,7 @@ func routeUpload(w http.ResponseWriter, r *http.Request) {
|
|||
if (r.Method == "POST") {
|
||||
info := Info{
|
||||
Ip: r.RemoteAddr,
|
||||
Random: rand.Int63(),
|
||||
Random: Rand64(),
|
||||
TimeStamp: time.Now(),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue