mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: add ability for setting current public IP in server IP update form
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
||||
findAdminById,
|
||||
findServerById,
|
||||
findServersByAdminId,
|
||||
getPublicIpWithFallback,
|
||||
haveActiveServices,
|
||||
removeDeploymentsByServerId,
|
||||
serverSetup,
|
||||
@@ -181,4 +182,8 @@ export const serverRouter = createTRPCRouter({
|
||||
throw error;
|
||||
}
|
||||
}),
|
||||
publicIp: protectedProcedure.query(async ({ ctx }) => {
|
||||
const ip = await getPublicIpWithFallback();
|
||||
return ip;
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user