This action will force synchronization from 精易科技/eapi, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
#include "..\include_eapi_header.h"inline char* GetIpFromHostName(const char* host_name){WORD wVersionRequested = MAKEWORD(2, 2);WSADATA wsaData;int err = WSAStartup(wVersionRequested, &wsaData);if (err != 0){return nullptr;}hostent* host = gethostbyname(host_name);if (host == NULL){WSACleanup();return nullptr;}in_addr addr;memcpy(&addr, host->h_addr_list[0], sizeof(in_addr));char* ip = inet_ntoa(addr);WSACleanup();return CloneTextData(ip);}// 调用格式: SDT_TEXT 取IP地址, 命令说明: NULL// 参数<1>: IP地址 SDT_TEXT, 参数说明: NULLEAPI_EXTERN_C void eapi_GetRemoteName_47_eapi(PMDATA_INF pRetData, INT nArgCount, PMDATA_INF pArgInf){char* MachineName = nullptr;if (pArgInf->m_dtDataType && strlen(pArgInf->m_pText) > 0){MachineName = pArgInf->m_pText;}pRetData->m_pText = GetIpFromHostName(pArgInf->m_pText);}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。