Skip to content

Commit abead35

Browse files
committed
updated README.md
1 parent 68d0b7a commit abead35

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

gcp_cloud_function_ifconfig/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Response is HTTP status code and message, then the raw JSON results
1313
200 OK
1414
1515
{
16-
"ip": "...",
17-
"ip_decimal": ... ,
16+
"ip": "1.2.3.4",
17+
"ip_decimal": 1234567890,
1818
"country": "United States",
1919
"country_iso": "US",
2020
"country_eu": false,
@@ -32,6 +32,12 @@ Response is HTTP status code and message, then the raw JSON results
3232
}
3333
```
3434

35+
For IPv6 the format will be more like:
36+
```
37+
"ip": "1234:5678:9012:34::a",
38+
"ip_decimal": 12345678901234567890123456789012345678,
39+
```
40+
3541
Upload the function to GCF in the current GCP project - this script will call `gcloud functions deploy` with the required switches:
3642

3743
```

0 commit comments

Comments
 (0)