|
@@ -3,7 +3,7 @@ import axios2 from "axios";
|
|
|
|
|
|
|
|
export const createPengunjung = async (_csrf) => {
|
|
export const createPengunjung = async (_csrf) => {
|
|
|
try {
|
|
try {
|
|
|
- const jsonip = await axios2.get("https://ip-api.io/json");
|
|
|
|
|
|
|
+ const jsonip = await axios2.get("https://api.ipify.org/?format=json");
|
|
|
const res = await axios.post(`/pengunjung/create?_csrf=${_csrf}`, {
|
|
const res = await axios.post(`/pengunjung/create?_csrf=${_csrf}`, {
|
|
|
os: navigator.userAgentData.platform,
|
|
os: navigator.userAgentData.platform,
|
|
|
ipv4: jsonip.data.ip,
|
|
ipv4: jsonip.data.ip,
|